diff options
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)          )  | 
