X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/81d1a618e724c6e9f20f4efa47acbcef4bba5f15..66622dea0bb8725d0cbec0976175d11162b17815:/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."""