summaryrefslogtreecommitdiff
path: root/archaeological_finds/tests.py
diff options
context:
space:
mode:
authorQuentinAndre <quentin.andre@imt-atlantique.net>2021-08-19 01:28:40 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-09-01 12:36:46 +0200
commit3e1f04bb922c3782b728c354886e10d50bef7a63 (patch)
treee0e37780ee8b94dd7f556af270eb826d90f0cfc8 /archaeological_finds/tests.py
parent4e54fd7b5e835c5475620b6b40dfa19c2bf3122d (diff)
downloadIshtar-3e1f04bb922c3782b728c354886e10d50bef7a63.tar.bz2
Ishtar-3e1f04bb922c3782b728c354886e10d50bef7a63.zip
stable version of setDefaultGeoItems
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r--archaeological_finds/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index 3af1eedec..35159e0c4 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -2521,7 +2521,7 @@ class GeomaticTest(FindInit, TestCase):
point_2d_bf = GEOSGeometry("POINT({} {})".format(3.9, 2.9), srid=4326)
xy_bf = 3.9, 2.9
- pks = {'cr': {}, 'bf': {}}
+ pks = {}
ope.multi_polygon = "SRID=4326;" + poly_ope
ope.multi_polygon_source = "P"
@@ -2556,7 +2556,7 @@ class GeomaticTest(FindInit, TestCase):
cr.point_2d = point_2d_cr
cr.save()
cr = ContextRecord.objects.get(pk=cr.pk)
- pks['cr'][label_cr] = cr.pk
+ pks[label_cr] = cr.pk
bfs = []
for bf_geom in list_geom_bf:
@@ -2578,7 +2578,7 @@ class GeomaticTest(FindInit, TestCase):
bf.save()
bf = models.BaseFind.objects.get(pk=bf.pk)
bfs.append(bf)
- pks['bf'][default['label']] = bf.pk
+ pks[default['label']] = bf.pk
find = models.Find.objects.create()
find.base_finds.add(bf)