test: super admin dep override

Test user super admin account added via override rather than assumed present.
This commit is contained in:
Chris Milne 2026-06-08 11:10:39 +01:00
parent 1aac45eb76
commit fff7ccde12
2 changed files with 5 additions and 1 deletions

View file

@ -66,6 +66,9 @@ def get_super_admin_list():
def empty_su_list():
return []
def testing_su_list():
return ["admin@test.com"]
su_list_dependency = Annotated[list[User], Depends(get_super_admin_list)]
async def user_model_super_admin(user_model: user_model_claims_dependency, super_admin_emails: su_list_dependency):