diff options
Diffstat (limited to 'ctrack/conftest.py')
-rw-r--r-- | ctrack/conftest.py | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/ctrack/conftest.py b/ctrack/conftest.py index b0a5bce..6ae06c2 100644 --- a/ctrack/conftest.py +++ b/ctrack/conftest.py @@ -29,7 +29,22 @@ from ctrack.users.tests.factories import UserFactory @pytest.fixture -def submode(): +def user() -> User: + return UserFactory() + + +@pytest.fixture +def inspector1() -> User: + return UserFactory() + + +@pytest.fixture +def inspector2() -> User: + return UserFactory() + + +@pytest.fixture +def submode(inspector1, inspector2): return Submode.objects.create( descriptor="Light Rail", mode=Mode.objects.create(descriptor="Rail") ) @@ -105,11 +120,6 @@ def cct_user_group() -> Group: @pytest.fixture -def user() -> User: - return UserFactory() - - -@pytest.fixture def cct_user(cct_user_group) -> User: # For testing views which require redirects to permission-controlled # pages, we have to ensure our test user is has the requisite permissions here |