Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-stytch committed Feb 5, 2025
1 parent df4ca4b commit 9385c16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stytch/shared/tests/test_rbac_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def test_perform_scope_authorization_check(self) -> None:
with self.subTest("has matching action but not resource"):
with self.assertRaises(RBACPermissionError):
# Arrange
scopes = [self.write_scope]
scopes = [self.write_scope.scope]
org_id = "my_org"
req = AuthorizationCheck(
organization_id=org_id,
Expand All @@ -156,7 +156,7 @@ def test_perform_scope_authorization_check(self) -> None:
with self.subTest("has matching resource but not action"):
with self.assertRaises(RBACPermissionError):
# Arrange
scopes = [self.read_scope]
scopes = [self.read_scope.scope]
org_id = "my_org"
req = AuthorizationCheck(
organization_id=org_id,
Expand All @@ -168,7 +168,7 @@ def test_perform_scope_authorization_check(self) -> None:

with self.subTest("has matching resource and specific action"):
# Arrange
scopes = [self.write_scope]
scopes = [self.write_scope.scope]
org_id = "my_org"
req = AuthorizationCheck(
organization_id=org_id,
Expand All @@ -181,7 +181,7 @@ def test_perform_scope_authorization_check(self) -> None:

with self.subTest("has matching resource and star action"):
# Arrange
scopes = [self.wildcard_scope]
scopes = [self.wildcard_scope.scope]
org_id = "my_org"
req = AuthorizationCheck(
organization_id=org_id,
Expand Down

0 comments on commit 9385c16

Please sign in to comment.