aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-11-17 13:35:29 +0300
committerFrederick Muriuki Muriithi2022-11-17 13:35:29 +0300
commitfb885e810f568a69e6703939062e532acf649a38 (patch)
tree9517a90b8072a85d0b61e2c33df7ebf361ec930d /tests/unit/auth
parent1bcc1033174127f165776f1b9c99ec75f1b49b4b (diff)
downloadgenenetwork3-fb885e810f568a69e6703939062e532acf649a38.tar.gz
Migrations: Create `group_users` table
* migrations/auth/20221117_02_fmuZh-create-group-users-table.py: new migration * tests/unit/auth/test_migrations_create_tables.py: test new migration * tests/unit/auth/test_migrations_indexes.py: test new migration
Diffstat (limited to 'tests/unit/auth')
-rw-r--r--tests/unit/auth/test_migrations_create_tables.py3
-rw-r--r--tests/unit/auth/test_migrations_indexes.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/unit/auth/test_migrations_create_tables.py b/tests/unit/auth/test_migrations_create_tables.py
index cf576b6..e51d04b 100644
--- a/tests/unit/auth/test_migrations_create_tables.py
+++ b/tests/unit/auth/test_migrations_create_tables.py
@@ -23,7 +23,8 @@ migrations_and_tables = (
("20221114_01_n8gsF-create-generic-role-privileges-table.py",
"generic_role_privileges"),
("20221114_03_PtWjc-create-group-roles-table.py", "group_roles"),
- ("20221114_05_hQun6-create-user-roles-table.py", "user_roles"))
+ ("20221114_05_hQun6-create-user-roles-table.py", "user_roles"),
+ ("20221117_02_fmuZh-create-group-users-table.py", "group_users"))
@pytest.mark.unit_test
@pytest.mark.parametrize("migration_file,the_table", migrations_and_tables)
diff --git a/tests/unit/auth/test_migrations_indexes.py b/tests/unit/auth/test_migrations_indexes.py
index db0a7f3..ea9d7e1 100644
--- a/tests/unit/auth/test_migrations_indexes.py
+++ b/tests/unit/auth/test_migrations_indexes.py
@@ -20,7 +20,9 @@ migrations_tables_and_indexes = (
("20221114_03_PtWjc-create-group-roles-table.py", "group_roles",
"idx_tbl_group_roles_cols_group_id"),
("20221114_05_hQun6-create-user-roles-table.py", "user_roles",
- "idx_tbl_user_roles_cols_user_id"))
+ "idx_tbl_user_roles_cols_user_id"),
+ ("20221117_02_fmuZh-create-group-users-table.py", "group_users",
+ "tbl_group_users_cols_group_id"))
@pytest.mark.unit_test
@pytest.mark.parametrize(