diff options
author | QuentinAndre <quentin.andre@imt-atlantique.net> | 2021-07-26 20:30:30 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-11-16 17:04:41 +0100 |
commit | 4fd4a7ede4aecc9b77cfeb80b91bb4593c2ba026 (patch) | |
tree | 0330f26c774d5733ca1a3bc6b421e8f56f614ec0 /archaeological_finds/tests.py | |
parent | 8667a4b03d275e71f1173cb0a1c1a3c4e7051445 (diff) | |
download | Ishtar-4fd4a7ede4aecc9b77cfeb80b91bb4593c2ba026.tar.bz2 Ishtar-4fd4a7ede4aecc9b77cfeb80b91bb4593c2ba026.zip |
all in jquery and get_geo_items fixes
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r-- | archaeological_finds/tests.py | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index c3b4a8c41..d6b2cc2ac 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -2879,17 +2879,6 @@ class GeomaticTest(FindInit, TestCase): }, "label": "OA2", } - dic_poly_pt_and_poly_pt_and_poly_f = copy.deepcopy(dic_poly_f) - dic_poly_pt_and_poly_pt_and_poly_f["properties"] = { - "context-records": { - "type": "FeatureCollection", - "features": [ - dic_poly_poly_and_pt_f, - dic_pt_poly_and_pt_f, - ], - }, - "label": "OA2", - } dic_poly_pt_and_poly_pt_and_poly_t = copy.deepcopy(dic_poly_t) dic_poly_pt_and_poly_pt_and_poly_t["properties"] = { "context-records": { @@ -2930,14 +2919,11 @@ class GeomaticTest(FindInit, TestCase): # ope is now a multipolygon ope_poly = Operation.objects.get(pk=ope.pk) ope_poly.multi_polygon = "SRID=4326;" + limit - ope_poly.point_source = None - ope_poly.point_2d = None - ope_poly.point = None ope_poly.save() ope_poly = Operation.objects.get(pk=ope_poly.pk) self.assertEqual( - dic_poly_pt_and_poly_pt_and_poly_f, ope_poly.get_geo_items(False) + dic_pt_pt_and_poly_pt_and_poly_f, ope_poly.get_geo_items(False) ) self.assertEqual( dic_poly_pt_and_poly_pt_and_poly_t, ope_poly.get_geo_items(True) @@ -2956,7 +2942,7 @@ class GeomaticTest(FindInit, TestCase): response = self.client.get(url_pts + "?operation_pk=" + str(ope_poly.pk)) self.assertEqual(response.status_code, 200) self.assertEqual( - dic_poly_pt_and_poly_pt_and_poly_f, json.loads(response.content) + dic_pt_pt_and_poly_pt_and_poly_f, json.loads(response.content) ) |