Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
justinefricou committed Oct 21, 2024
1 parent 3ce4668 commit efc7e64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions geotrek/maintenance/tests/test_forms.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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={
Expand Down

0 comments on commit efc7e64

Please sign in to comment.