19_Tests #40

Merged
mpeltriaux merged 19 commits from 19_Tests into master 2021-11-15 09:48:12 +01:00
Showing only changes of commit e59af1e437 - Show all commits

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):
"""