Skip to content

Commit

Permalink
chore: fix directory
Browse files Browse the repository at this point in the history
  • Loading branch information
BCerki committed Dec 19, 2024
1 parent 716d8b5 commit fb45bd7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
16 changes: 10 additions & 6 deletions bc_obps/common/management/commands/load_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,19 @@ def handle(self, *args, **options):
f'{fixture_base_dir}/user_operator.json',
],
"admin-industry_user": [
fixture.replace('user_operator.json', 'admin/user_operator.json')
if 'user_operator.json' in fixture
else fixture
(
fixture.replace('user_operator.json', 'admin/user_operator.json')
if 'user_operator.json' in fixture
else fixture
)
for fixture in fixtures_base
],
"admin-industry_user_operator": [
fixture.replace('user_operator.json', 'admin/user_operator_approved.json')
if 'user_operator.json' in fixture
else fixture
(
fixture.replace('user_operator.json', 'admin/user_operator_approved.json')
if 'user_operator.json' in fixture
else fixture
)
for fixture in fixtures_base
],
# Add more workflows here
Expand Down
18 changes: 11 additions & 7 deletions bc_obps/common/management/commands/load_fixtures_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def add_arguments(self, parser):
parser.add_argument('workflow', nargs='?', type=str, help='Name of the workflow')

def handle(self, *args, **options):
fixture_base_dir = 'registration/fixtures/mock'
fixture_base_dir = 'registration/fixtures/mock/v1'
fixtures_base = [ # Order of fixtures is important
f'{fixture_base_dir}/address.json',
f'{fixture_base_dir}/user.json',
Expand Down Expand Up @@ -44,15 +44,19 @@ def handle(self, *args, **options):
f'{fixture_base_dir}/user_operator.json',
],
"admin-industry_user": [
fixture.replace('user_operator.json', 'admin/user_operator.json')
if 'user_operator.json' in fixture
else fixture
(
fixture.replace('user_operator.json', 'admin/user_operator.json')
if 'user_operator.json' in fixture
else fixture
)
for fixture in fixtures_base
],
"admin-industry_user_operator": [
fixture.replace('user_operator.json', 'admin/user_operator_approved.json')
if 'user_operator.json' in fixture
else fixture
(
fixture.replace('user_operator.json', 'admin/user_operator_approved.json')
if 'user_operator.json' in fixture
else fixture
)
for fixture in fixtures_base
],
# Add more workflows here
Expand Down

0 comments on commit fb45bd7

Please sign in to comment.