From 1d138e45e5fecec4fe30948e16d81835c72d1a8c Mon Sep 17 00:00:00 2001 From: Katy Baulch <46493669+katybaulch@users.noreply.github.com> Date: Wed, 25 Oct 2023 14:43:05 +0100 Subject: [PATCH] Split out super and admin booleans. --- integration_tests/setup_db.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/integration_tests/setup_db.py b/integration_tests/setup_db.py index f0f84a0c..79cd49ad 100644 --- a/integration_tests/setup_db.py +++ b/integration_tests/setup_db.py @@ -212,6 +212,7 @@ def _add_app_user( hashed_pass: str = "", is_active: bool = True, is_super: bool = False, + is_admin: bool = False, ): test_db.add( AppUser( @@ -225,7 +226,7 @@ def _add_app_user( organisation_id=org_id, job_title="", is_active=is_active, - is_admin=is_super, + is_admin=is_admin, ) ) test_db.commit() @@ -261,9 +262,7 @@ def _setup_organisation(test_db: Session) -> int: test_db, "test2@cpr.org", "TestHashedPassEmpty", org.id, hashed_pass="" ) _add_app_user(test_db, "test3@cpr.org", "TestPassMismatch", org.id, hashed_pass="") - _add_app_user( - test_db, "admin@cpr.org", "Admin", org.id, hashed_pass="", is_super=True - ) + _add_app_user(test_db, "admin@cpr.org", "Admin", org.id, hashed_pass="") return cast(int, org.id)