From efc7e64ab6d9fb835e2212a36fb910e108a32b68 Mon Sep 17 00:00:00 2001 From: Justine Fricou Date: Mon, 21 Oct 2024 17:07:57 +0200 Subject: [PATCH] Fix test --- geotrek/maintenance/tests/test_forms.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/geotrek/maintenance/tests/test_forms.py b/geotrek/maintenance/tests/test_forms.py index 1bec797ae8..f97a52c6e7 100644 --- a/geotrek/maintenance/tests/test_forms.py +++ b/geotrek/maintenance/tests/test_forms.py @@ -1,4 +1,7 @@ -from django.test import TestCase, override_settings, modify_settings +from unittest import skipIf + +from django.conf import settings +from django.test import TestCase, override_settings from geotrek.authent.tests.factories import UserFactory from geotrek.common.tests import TranslationResetMixin from geotrek.maintenance.tests.factories import InterventionJobFactory, LightInterventionFactory, ManDayFactory, InterventionStatusFactory @@ -67,8 +70,8 @@ def test_end_date_after_start_date(self): self.assertFalse(form.is_valid()) self.assertIn("Begin date is after end date", str(form.errors)) + @skipIf(settings.TREKKING_TOPOLOGY_ENABLED, 'Test without dynamic segmentation only') @override_settings(SURICATE_WORKFLOW_ENABLED=True) - @modify_settings(INSTALLED_APPS={'append': 'geotrek.feedback'}) def test_ok_if_target_is_not_report(self): form = InterventionForm( data={