Skip to content

Commit

Permalink
user created for policy test
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakdinesh1123 committed Dec 3, 2024
1 parent 4199a43 commit 49fddd5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def test_multi_role_with_one_policy_mapping(self):
def test_one_role_with_multi_policy_mapping(self):
expected_role_name = "dummy_role_1"
expected_policy_names = ["RetailersGetViewAccess", "DummyGetViewAccess"]
# with schema_context(self.tenant.schema_name):
# UserRoleModel.objects.create(name="test_role_1")
# UserRoleModel.objects.create(name="test_role_2")
# UserRoleModel.objects.create(name=expected_role_name)
with schema_context(self.tenant.schema_name):
UserRoleModel.objects.create(name="test_role_1")
UserRoleModel.objects.create(name="test_role_2")
UserRoleModel.objects.create(name=expected_role_name)

self.sync_policies()

Expand Down

0 comments on commit 49fddd5

Please sign in to comment.