From 9385c1698ca7119cb514dd9ba06f06540f2960a4 Mon Sep 17 00:00:00 2001 From: Vincent Jin Date: Wed, 5 Feb 2025 09:49:04 -0800 Subject: [PATCH] test --- stytch/shared/tests/test_rbac_local.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stytch/shared/tests/test_rbac_local.py b/stytch/shared/tests/test_rbac_local.py index 4fe4a15..659b373 100644 --- a/stytch/shared/tests/test_rbac_local.py +++ b/stytch/shared/tests/test_rbac_local.py @@ -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, @@ -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, @@ -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, @@ -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,