summaryrefslogtreecommitdiff
path: root/archaeological_finds/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r--archaeological_finds/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index 929cdfeff..4713f2bcd 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -1582,6 +1582,9 @@ class GeomaticTest(FindInit, TestCase):
txt_idx='wgs84', defaults={"srid": 4326, "label": 'WGS84',
'auth_name': 'EPSG'}
)
+ profile = get_current_profile()
+ profile.mapping = True
+ profile.save()
# db source
geom = GEOSGeometry('POINT({} {} {})'.format(2, 43, 1), srid=4326)
@@ -1707,6 +1710,10 @@ class GeomaticTest(FindInit, TestCase):
unicode(models.BaseFind._meta.verbose_name))
def test_post_save_polygon(self):
+ profile = get_current_profile()
+ profile.mapping = True
+ profile.save()
+
find = self.finds[0]
base_find = find.base_finds.all()[0]
srs, __ = SpatialReferenceSystem.objects.get_or_create(