X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dfe0ec7bfec3fd72cd40d3962e5c8af08d2413d2..9c3cc0f61751720cfdea62717934746d1aa32b72:/sdk/cwl/tests/test_pathmapper.py diff --git a/sdk/cwl/tests/test_pathmapper.py b/sdk/cwl/tests/test_pathmapper.py index 57958f78d0..3b6af04b29 100644 --- a/sdk/cwl/tests/test_pathmapper.py +++ b/sdk/cwl/tests/test_pathmapper.py @@ -12,6 +12,7 @@ import arvados.collection import arvados_cwl from cwltool.pathmapper import MapperEnt +from .mock_discovery import get_rootDesc from arvados_cwl.pathmapper import ArvPathMapper @@ -23,7 +24,7 @@ def upload_mock(files, api, dry_run=False, num_retries=0, project=None, fnPatter class TestPathmap(unittest.TestCase): def setUp(self): self.api = mock.MagicMock() - self.api._rootDesc = arvados.api('v1')._rootDesc + self.api._rootDesc = get_rootDesc() def test_keepref(self): """Test direct keep references."""