aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/auth/fixtures/role_fixtures.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-12-12 10:04:10 +0300
committerFrederick Muriuki Muriithi2022-12-12 13:28:14 +0300
commit8d728774bfc5371c61b483cb5470f45456de028b (patch)
treedee6570ca7bf9279c9bf97cdf5d1eed37fe22764 /tests/unit/auth/fixtures/role_fixtures.py
parentf0aea560d2bbbaf4050a531d2769b1726b5b4cb6 (diff)
downloadgenenetwork3-8d728774bfc5371c61b483cb5470f45456de028b.tar.gz
tests: Reorganise fixtures
Split the fixtures into separate modules for easier management * tests/unit/auth/conftest.py: Import all from the `fixtures` package. Delete all fixtures from the file * tests/unit/auth/fixtures/__init__.py: new `fixtures` package * tests/unit/auth/fixtures/group_fixtures.py: new groups fixtures module * tests/unit/auth/fixtures/migration_fixtures.py: new migrations fixtures module * tests/unit/auth/fixtures/resource_fixtures.py: new resources fixtures module * tests/unit/auth/fixtures/role_fixtures.py: new roles fixtures module * tests/unit/auth/fixtures/user_fixtures.py: new users fixtures module
Diffstat (limited to 'tests/unit/auth/fixtures/role_fixtures.py')
-rw-r--r--tests/unit/auth/fixtures/role_fixtures.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/auth/fixtures/role_fixtures.py b/tests/unit/auth/fixtures/role_fixtures.py
new file mode 100644
index 0000000..f8b0f6f
--- /dev/null
+++ b/tests/unit/auth/fixtures/role_fixtures.py
@@ -0,0 +1,9 @@
+"""Fixtures and utilities for role-related tests"""
+import pytest
+
+from gn3.auth import db
+
+@pytest.fixture(scope="function")
+def fixture_user_roles(test_users_in_group):
+ conn, *_others = test_users_in_group
+ raise Exception("NOT IMPLEMENTED ...")