diff options
Diffstat (limited to 'ishtar_common/tests.py')
| -rw-r--r-- | ishtar_common/tests.py | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index 71bf38f28..ae115f654 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -2842,7 +2842,7 @@ class IshtarBasicTest(TestCase):          self.assertEqual(town.cached_label, "Sin City - 99 (2050)") -class GeoVectorTest(TestCase): +class GeoVectorFormTest(TestCase):      fixtures = FILE_FIXTURES      def setUp(self): @@ -2875,6 +2875,10 @@ class GeoVectorTest(TestCase):          self.app_source = "archaeological_operations"          self.model_source = "operation"          self.source_pk = self.operation.pk +        self.source_content_type_pk = ContentType.objects.get( +            app_label=self.app_source, +            model=self.model_source +        ).pk      def _test_get_create_geo(self, c, geom_type):          response = c.get(reverse( @@ -3280,7 +3284,7 @@ class GeoVectorTest(TestCase):      def _create_geo(self, geom_type):          geo_vector = models.GeoVectorData.objects.create( -            source_content_type_id=self.source_pk, +            source_content_type_id=self.source_content_type_pk,              source_id=self.source_pk,              name=f"Before edition geo {geom_type}",              origin=self.origin, | 
