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:
Alexander Schepanovski
2019-12-02 23:33:44 +01:00
co-authored by Ruslan Kuprieiev Paweł Redzyński
parent 0385810662
commit c27988a042
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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()]
+1 -1
View File
@@ -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")
+2 -2
View File
@@ -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)