Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Nov 4, 2022
1 parent edfdbf6 commit 7d54233
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 1 deletion.
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": "ee8c646aba8e19e95a8fb9508d2928771a95a2a1",
"commit": "1365e60510d657a05371486b62233a6bc3037af5",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
86 changes: 86 additions & 0 deletions dvc_s3/tests/test_dvc.py.rej
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
diff a/dvc_s3/tests/test_dvc.py b/dvc_s3/tests/test_dvc.py (rejected hunks)
@@ -5,52 +5,58 @@ from dvc.testing.api_tests import ( # noqa, pylint: disable=unused-import
from dvc.testing.remote_tests import ( # noqa, pylint: disable=unused-import
TestRemote,
)
+from dvc.testing.workspace_tests import TestAdd as _TestAdd
from dvc.testing.workspace_tests import ( # noqa, pylint: disable=unused-import
- TestAdd,
- TestImport,
+ TestGetUrl,
+)
+from dvc.testing.workspace_tests import TestImport as _TestImport
+from dvc.testing.workspace_tests import ( # noqa, pylint: disable=unused-import
+ TestLsUrl,
)


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


@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="s3")


@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="s3")


-@pytest.fixture
-def stage_md5():
- raise NotImplementedError
+class TestImport(_TestImport):
+ @pytest.fixture
+ def stage_md5(self):
+ raise NotImplementedError


-@pytest.fixture
-def is_object_storage():
- raise NotImplementedError
+ @pytest.fixture
+ def is_object_storage(self):
+ raise NotImplementedError


-@pytest.fixture
-def dir_md5():
- raise NotImplementedError
+ @pytest.fixture
+ def dir_md5(self):
+ raise NotImplementedError


-@pytest.fixture
-def hash_name():
- raise NotImplementedError
+class TestAdd(_TestAdd):
+ @pytest.fixture
+ def hash_name(self):
+ raise NotImplementedError


-@pytest.fixture
-def hash_value():
- raise NotImplementedError
+ @pytest.fixture
+ def hash_value(self):
+ raise NotImplementedError


-@pytest.fixture
-def dir_hash_value(dir_md5):
- raise NotImplementedError
+ @pytest.fixture
+ def dir_hash_value(self):
+ raise NotImplementedError

0 comments on commit 7d54233

Please sign in to comment.