Fix: Update test_permissions.py to use new exchange permissions
This commit is contained in:
parent
edc292986f
commit
743129b11d
1 changed files with 5 additions and 5 deletions
|
|
@ -50,10 +50,10 @@ class TestRoleAssignment:
|
|||
data = response.json()
|
||||
permissions = data["permissions"]
|
||||
|
||||
# Should have profile and booking permissions
|
||||
# Should have profile and exchange permissions
|
||||
assert Permission.MANAGE_OWN_PROFILE.value in permissions
|
||||
assert Permission.BOOK_APPOINTMENT.value in permissions
|
||||
assert Permission.VIEW_OWN_APPOINTMENTS.value in permissions
|
||||
assert Permission.CREATE_EXCHANGE.value in permissions
|
||||
assert Permission.VIEW_OWN_EXCHANGES.value in permissions
|
||||
|
||||
# Should NOT have audit permission
|
||||
assert Permission.VIEW_AUDIT.value not in permissions
|
||||
|
|
@ -69,8 +69,8 @@ class TestRoleAssignment:
|
|||
# Should have audit permission
|
||||
assert Permission.VIEW_AUDIT.value in permissions
|
||||
|
||||
# Should NOT have booking permissions (those are for regular users)
|
||||
assert Permission.BOOK_APPOINTMENT.value not in permissions
|
||||
# Should NOT have exchange permissions (those are for regular users)
|
||||
assert Permission.CREATE_EXCHANGE.value not in permissions
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_user_with_no_roles_has_no_permissions(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue