diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-20 13:45:31 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-20 13:45:31 +0100 |
commit | 4ea13b2ed79e95d2cf710c8d2d6e95fb454e054a (patch) | |
tree | 59bebcc5d65e7720d4d171301bb3f9d4a0dcccc7 /ctrack/conftest.py | |
parent | 5f5a6598c43f7df744c0a9127dced97103136cfe (diff) |
added lead and deputy inspector for org methods to User
Diffstat (limited to '')
-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 |