diff --git a/tests/management/permission/test_view.py b/tests/management/permission/test_view.py index a774ee76b..2ac0e40b9 100644 --- a/tests/management/permission/test_view.py +++ b/tests/management/permission/test_view.py @@ -58,7 +58,7 @@ def setUp(self): permission="foo:bar:*", description="Description test.", tenant=self.tenant ) self.permissionI.permissions.add(self.permissionA) - self.permissionJ = Permission.objects.create(permission="cost-management:*:baz") + self.permissionJ = Permission.objects.create(permission="cost-management:*:baz", tenant=self.tenant) self.roleA = Role.objects.create(name="roleA", tenant=self.tenant) self.roleB = Role.objects.create(name="roleB", tenant=self.tenant)