Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Dec 3, 2022
1 parent edfdbf6 commit 144f26e
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 2 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": "ee8c646aba8e19e95a8fb9508d2928771a95a2a1",
"commit": "5e07217326c0c136274315e550e3932668a407a7",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
- flake8-comprehensions
- flake8-debugger
- flake8-string-format
repo: https://gitlab.com/pycqa/flake8
repo: https://github.com/pycqa/flake8
rev: 3.9.2
- repo: local
hooks:
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 144f26e

Please sign in to comment.