mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: minor fixture refactor fixes from @pared and @efiop
Co-Authored-By: Ruslan Kuprieiev <[email protected]> Co-Authored-By: Paweł Redzyński <[email protected]>
This commit is contained in:
co-authored by
Ruslan Kuprieiev
Paweł Redzyński
parent
0385810662
commit
c27988a042
@@ -90,7 +90,7 @@ class TmpDir(pathlib.Path):
|
||||
if commit:
|
||||
self.scm.commit(commit)
|
||||
|
||||
# Introspection mehtods
|
||||
# Introspection methods
|
||||
def list(self):
|
||||
return [p.name for p in self.iterdir()]
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ class TestAdd(TestDvc):
|
||||
self.assertTrue(os.path.isfile(stage.path))
|
||||
|
||||
|
||||
class TestAddUnupportedFile(TestDvc):
|
||||
class TestAddUnsupportedFile(TestDvc):
|
||||
def test(self):
|
||||
with self.assertRaises(DvcException):
|
||||
self.dvc.add("unsupported://unsupported")
|
||||
|
||||
@@ -62,9 +62,9 @@ def test_open(remote_url, tmp_dir, dvc):
|
||||
|
||||
@pytest.mark.parametrize("remote_url", all_remote_params, indirect=True)
|
||||
def test_open_external(remote_url, erepo_dir):
|
||||
erepo_dir.dvc.scm.checkout("branch")
|
||||
erepo_dir.scm.checkout("branch")
|
||||
_set_remote_url_and_commit(erepo_dir.dvc, remote_url)
|
||||
erepo_dir.dvc.scm.checkout("master")
|
||||
erepo_dir.scm.checkout("master")
|
||||
_set_remote_url_and_commit(erepo_dir.dvc, remote_url)
|
||||
|
||||
erepo_dir.dvc.push(all_branches=True)
|
||||
|
||||
Reference in New Issue
Block a user