aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-11-14 12:00:48 +0300
committerFrederick Muriuki Muriithi2022-11-14 12:00:48 +0300
commitf3295a7d6df0a64c3949fa2e940918cea94f99a1 (patch)
tree5df61aba35d23a513e9638915ef8beb67e7308eb /tests/unit
parent0144bfbcec8250d495d17c9728c7fca6beffae72 (diff)
downloadgenenetwork3-f3295a7d6df0a64c3949fa2e940918cea94f99a1.tar.gz
Migrations: Create the `group-leader` role and give it privileges
* migrations/auth/20221114_04_tLUzB-initialise-basic-roles.py: new migration * tests/unit/auth/test_migrations_insert_data_into_empty_table.py: test new migration
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/auth/test_migrations_insert_data_into_empty_table.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/auth/test_migrations_insert_data_into_empty_table.py b/tests/unit/auth/test_migrations_insert_data_into_empty_table.py
index c89884f..73d654a 100644
--- a/tests/unit/auth/test_migrations_insert_data_into_empty_table.py
+++ b/tests/unit/auth/test_migrations_insert_data_into_empty_table.py
@@ -10,7 +10,9 @@ from tests.unit.auth.conftest import (
apply_single_migration, rollback_single_migration, migrations_up_to)
test_params = (
- ("20221113_01_7M0hv-enumerate-initial-privileges.py", "privileges", 19),)
+ ("20221113_01_7M0hv-enumerate-initial-privileges.py", "privileges", 19),
+ ("20221114_04_tLUzB-initialise-basic-roles.py", "roles", 1),
+ ("20221114_04_tLUzB-initialise-basic-roles.py", "role_privileges", 11))
@pytest.mark.unit_test
@pytest.mark.parametrize(