summaryrefslogtreecommitdiff
path: root/archaeological_finds/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-08-31 16:54:34 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-10-25 12:06:03 +0200
commit2b60ed096578912270e393c1c4e8d7516dea70a7 (patch)
tree74c2c2e97a26b960ed7803db499f2da205bbe718 /archaeological_finds/tests.py
parent24a7285d40b4268d53bcf4adcdeb88a5186efb2c (diff)
downloadIshtar-2b60ed096578912270e393c1c4e8d7516dea70a7.tar.bz2
Ishtar-2b60ed096578912270e393c1c4e8d7516dea70a7.zip
Tests: clean imports
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r--archaeological_finds/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index 1311a72ba..813153318 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -79,6 +79,7 @@ from archaeological_operations.models import Operation, OperationType
from ishtar_common import forms_common
from ishtar_common.tests import (
+ GeomaticTest as BaseGeomaticTest,
WizardTest,
WizardTestFormData as FormData,
TestCase,
@@ -2523,8 +2524,6 @@ class GeomaticTest(FindInit, TestCase):
self.assertEqual(base_find.point_source, "P")
def test_get_geo_items(self):
- from ishtar_common.tests import GeomaticTest as BaseGeomaticTest
-
# profile = models.get_current_profile()
profile = get_current_profile()
profile.mapping = True
@@ -2873,6 +2872,8 @@ class SeleniumTestsBaseFinds(SeleniumTests):
self.assertNotInDOM(get_poly)
def test_geo_items(self):
+ if not settings.SELENIUM_TEST:
+ return
geojsons = self.default_geojson()
# from operation
self.access_from_dropdown("operation")