Skip to content

Commit

Permalink
Create the correct CDSA group name for example data
Browse files Browse the repository at this point in the history
Instead of hardcoding the CDSA group name as "PRIMED_CDSA", use the
name specified in the settings file.
  • Loading branch information
amstilp committed Sep 25, 2023
1 parent 662efcb commit 8cd56a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion add_cdsa_example_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
ManagedGroupFactory,
WorkspaceGroupSharingFactory,
)
from django.conf import settings

from primed.cdsa.tests import factories
from primed.duo.tests.factories import DataUseModifierFactory, DataUsePermissionFactory
Expand All @@ -33,7 +34,7 @@
dum = DataUseModifierFactory.create(abbreviation="NPU")

# create the CDSA auth group
cdsa_group = ManagedGroupFactory.create(name="PRIMED_CDSA")
cdsa_group = ManagedGroupFactory.create(name=settings.ANVIL_CDSA_GROUP_NAME)

# Create some study sites.
StudySiteFactory.create(short_name="CARDINAL", full_name="CARDINAL")
Expand Down

0 comments on commit 8cd56a8

Please sign in to comment.