Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmcalpine committed Oct 22, 2024
1 parent 3ea78a2 commit 63b60be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/test_registrar_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ def test_read_file(tmpdir, nchars, max_config_length, ans):
("mydataset", "1.1.1", ".gen_paths/mydataset_1.1.1"),
],
)
def test_relpath_from_name(name, version_string, ans):
def test_relpath_from_name(name, version_string, ans, old_location=None):
"""
Test dataset path construction
Datasets should come back with the format:
<root_dir>/<owner_type>/<owner>/<relative_path>
"""

tmp = _relpath_from_name(name, version_string)
tmp = _relpath_from_name(name, version_string, old_location)
assert tmp == ans

@pytest.mark.parametrize(
Expand Down

0 comments on commit 63b60be

Please sign in to comment.