summaryrefslogtreecommitdiff
path: root/archaeological_finds/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-08 23:54:50 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-24 19:42:35 +0200
commit1cb936f624dcaf7865e8d6100fb3d1cfeb652cc2 (patch)
tree6401e6bbeb1c98dbf0a9a88817d2163c0be67305 /archaeological_finds/tests.py
parentf8bcac5410d931cf427abcfdd1151c6d8bf3e660 (diff)
downloadIshtar-1cb936f624dcaf7865e8d6100fb3d1cfeb652cc2.tar.bz2
Ishtar-1cb936f624dcaf7865e8d6100fb3d1cfeb652cc2.zip
Fix geo tests
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(