diff --git a/tests/conftest.py b/tests/conftest.py index f57cd42b..917a9d2d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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, diff --git a/tests/test_shoulder_mint.py b/tests/test_shoulder_mint.py index ac532851..f7686212 100644 --- a/tests/test_shoulder_mint.py +++ b/tests/test_shoulder_mint.py @@ -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') diff --git a/tests/util/util.py b/tests/util/util.py index f9b07525..8809232a 100644 --- a/tests/util/util.py +++ b/tests/util/util.py @@ -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:'