From 4015d2799e799600e8193fa2acc7f4936f0f0050 Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Thu, 8 Aug 2024 15:56:07 -0700 Subject: [PATCH] Fix tests for ManagedGroupAdapter --- gregor_django/gregor_anvil/tests/test_adapters.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gregor_django/gregor_anvil/tests/test_adapters.py b/gregor_django/gregor_anvil/tests/test_adapters.py index 185418a8..ce158cd3 100644 --- a/gregor_django/gregor_anvil/tests/test_adapters.py +++ b/gregor_django/gregor_anvil/tests/test_adapters.py @@ -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, @@ -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")