Skip to content

Commit

Permalink
Add dvc ls-url tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rlamy committed Oct 5, 2022
1 parent 387c50d commit c7336ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/iterative/cookiecutter-dvc-plugin",
"commit": "13d5c9b49c49d3c14106cb4f9aa61d07876c039b",
"commit": "825ad46a5fdd5cfb92f4993cad2ac6a6d1b0b971",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
17 changes: 11 additions & 6 deletions dvc_ssh/tests/test_dvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@
)
from dvc.testing.workspace_tests import TestAdd as _TestAdd
from dvc.testing.workspace_tests import TestImport as _TestImport
from dvc.testing.workspace_tests import TestLsUrl as _TestLsUrl


@pytest.fixture
def cloud_name():
return "ssh"
def cloud(make_cloud):
yield make_cloud(typ="ssh")


@pytest.fixture
def remote(make_remote, cloud_name):
yield make_remote(name="upstream", typ=cloud_name)
def remote(make_remote):
yield make_remote(name="upstream", typ="ssh")


@pytest.fixture
def workspace(make_workspace, cloud_name):
yield make_workspace(name="workspace", typ=cloud_name)
def workspace(make_workspace):
yield make_workspace(name="workspace", typ="ssh")


class TestImport(_TestImport):
Expand Down Expand Up @@ -50,3 +51,7 @@ def hash_value(self):
@pytest.fixture
def dir_hash_value(self):
return "b6dcab6ccd17ca0a8bf4a215a37d14cc.dir"


class TestLsUrl(_TestLsUrl):
pass

0 comments on commit c7336ed

Please sign in to comment.