Skip to content

Commit

Permalink
Fix tests for ManagedGroupAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Aug 8, 2024
1 parent fbe3b2b commit 4015d27
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gregor_django/gregor_anvil/tests/test_adapters.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import responses
from anvil_consortium_manager.adapters.default import DefaultWorkspaceAdapter
from anvil_consortium_manager.models import Account, WorkspaceGroupSharing
from anvil_consortium_manager.models import Account, GroupGroupMembership, WorkspaceGroupSharing
from anvil_consortium_manager.tests.factories import (
AccountFactory,
GroupGroupMembership,
ManagedGroupFactory,
WorkspaceFactory,
WorkspaceGroupSharingFactory,
Expand Down Expand Up @@ -267,7 +266,7 @@ def test_after_anvil_create(self):
self.assertEqual(membership.child_group, admins_group)
self.assertEqual(membership.role, GroupGroupMembership.ADMIN)

@override_settings(ANVIL_CC_ADMINS_GROUP_NAME="foobar")
@override_settings(ANVIL_DCC_ADMINS_GROUP_NAME="foobar")
def test_after_anvil_create_different_admins_group(self):
admins_group = ManagedGroupFactory.create(name="foobar")
managed_group = ManagedGroupFactory.create(name="test-group")
Expand Down

0 comments on commit 4015d27

Please sign in to comment.