test: super admin dep override
Test user super admin account added via override rather than assumed present.
This commit is contained in:
parent
1aac45eb76
commit
fff7ccde12
2 changed files with 5 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue