* restructures setup for workflow tests in interventions
This commit is contained in:
mpeltriaux 2021-11-12 16:42:40 +01:00
parent 03ff4098f0
commit e99af98a13

View File

@ -12,7 +12,7 @@ from django.urls import reverse
from compensation.models import Payment, EcoAccountDeduction
from intervention.models import Intervention
from konova.settings import DEFAULT_GROUP, ETS_GROUP, ZB_GROUP
from konova.settings import ETS_GROUP, ZB_GROUP
from konova.tests.test_views import BaseWorkflowTestCase
from user.models import UserActionLogEntry, UserAction
@ -26,7 +26,11 @@ class InterventionWorkflowTestCase(BaseWorkflowTestCase):
def setUpTestData(cls):
super().setUpTestData()
cls.intervention.share_with(cls.superuser)
def setUp(self) -> None:
super().setUp()
# Recreate a new (bare minimum) intervention before each test
self.intervention = self.create_dummy_intervention()
self.intervention.share_with(self.superuser)
def test_new(self):
"""