diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-08-31 16:54:34 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:48 +0200 |
commit | dbd550b709066fa63a51443c9f1f7c76b6937b10 (patch) | |
tree | c510d346427244b4ab6ededfd1e2509ee2074162 /archaeological_finds/tests.py | |
parent | 86a08b17349f87959fa71223dee014476b477408 (diff) | |
download | Ishtar-dbd550b709066fa63a51443c9f1f7c76b6937b10.tar.bz2 Ishtar-dbd550b709066fa63a51443c9f1f7c76b6937b10.zip |
Tests: clean imports
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r-- | archaeological_finds/tests.py | 5 |
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") |