Skip to content

Commit

Permalink
tests: use cloud instead of workspace
Browse files Browse the repository at this point in the history
also gdrive doesn't support it yet :(
  • Loading branch information
efiop committed Jan 14, 2021
1 parent f1ae92b commit 41640c6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/func/test_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,20 +279,18 @@ def test_walk_dont_ignore_subrepos(tmp_dir, scm, dvc):


@pytest.mark.parametrize(
"workspace",
"cloud",
[
pytest.lazy_fixture("local_cloud"),
pytest.lazy_fixture("s3"),
pytest.lazy_fixture("gs"),
pytest.lazy_fixture("gdrive"),
pytest.lazy_fixture("hdfs"),
pytest.lazy_fixture("http"),
],
indirect=True,
)
def test_tree_getsize(dvc, workspace):
workspace.gen({"data": {"foo": "foo"}, "baz": "baz baz"})
tree = get_cloud_tree(dvc, url=workspace.url)
def test_tree_getsize(dvc, cloud):
cloud.gen({"data": {"foo": "foo"}, "baz": "baz baz"})
tree = get_cloud_tree(dvc, **cloud.config)
path_info = tree.path_info

assert tree.getsize(path_info / "baz") == 7
Expand Down

0 comments on commit 41640c6

Please sign in to comment.