Skip to content

Commit

Permalink
rename function to include minter
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjiang committed Sep 28, 2023
1 parent 21f79d1 commit 201c67c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def apitest_minter():
# ns_str = 'doi:10.39999/SD2'
ns_str = 'ark:/99936/x3'

shoulder_model = tests.util.util.create_shoulder(
shoulder_model = tests.util.util.create_shoulder_and_minter(
namespace_str=ns_str,
organization_name=f'API TEST Shoulder: {ns_str}',
# datacenter_model=None,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_shoulder_mint.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class TestShoulderMint:
def test_0100(self, caplog):
caplog.set_level(logging.INFO)
namespace_str = 'ark:/33333/r3'
tests.util.util.create_shoulder(namespace_str)
tests.util.util.create_shoulder_and_minter(namespace_str)
django.core.management.call_command('shoulder-mint', namespace_str, '--count', '2')
sample.assert_match(caplog.text, 'minted')
2 changes: 1 addition & 1 deletion tests/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def shoulder_to_dict(s):
}


def create_shoulder(
def create_shoulder_and_minter(
namespace_str, organization_name='test shoulder', root_path=None, mask_str='eedk'
):
is_doi = namespace_str[:4] == 'doi:'
Expand Down

0 comments on commit 201c67c

Please sign in to comment.