summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
authorQuentinAndre <quentin.andre@imt-atlantique.net>2021-07-26 20:30:30 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:58:48 +0200
commit6a8dc71f4381c5b6b78dc23105ec5cdc3dc64dfb (patch)
treedf71647e2284f4dd834b98044046d6133c898b61 /archaeological_finds
parent499c5e4ee6cb3a47526798de55a5c00ca468d039 (diff)
downloadIshtar-6a8dc71f4381c5b6b78dc23105ec5cdc3dc64dfb.tar.bz2
Ishtar-6a8dc71f4381c5b6b78dc23105ec5cdc3dc64dfb.zip
all in jquery and get_geo_items fixes
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/tests.py18
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)
)