From fb885e810f568a69e6703939062e532acf649a38 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 17 Nov 2022 13:35:29 +0300 Subject: 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 --- tests/unit/auth/test_migrations_create_tables.py | 3 ++- tests/unit/auth/test_migrations_indexes.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tests') 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( -- cgit v1.2.3