From de9ff82b9c74cdb58577f6d428ad0366603cde6f Mon Sep 17 00:00:00 2001 From: pawel Date: Tue, 14 Jan 2020 13:40:44 +0100 Subject: [PATCH] tests: local: unit: migrate to dir helpers --- tests/unit/output/test_local.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/unit/output/test_local.py b/tests/unit/output/test_local.py index 1e64d32ac..50059e6ea 100644 --- a/tests/unit/output/test_local.py +++ b/tests/unit/output/test_local.py @@ -23,27 +23,27 @@ class TestOutputLOCAL(TestDvc): o.save() -def test_str_workdir_outside_repo(erepo): - stage = Stage(erepo.dvc) +def test_str_workdir_outside_repo(erepo_dir): + stage = Stage(erepo_dir.dvc) output = OutputLOCAL(stage, "path", cache=False) - assert relpath("path", erepo.dvc.root_dir) == str(output) + assert relpath("path", erepo_dir.dvc.root_dir) == str(output) -def test_str_workdir_inside_repo(dvc_repo): - stage = Stage(dvc_repo) +def test_str_workdir_inside_repo(dvc): + stage = Stage(dvc) output = OutputLOCAL(stage, "path", cache=False) assert "path" == str(output) - stage = Stage(dvc_repo, wdir="some_folder") + stage = Stage(dvc, wdir="some_folder") output = OutputLOCAL(stage, "path", cache=False) assert os.path.join("some_folder", "path") == str(output) -def test_str_on_absolute_path(dvc_repo): - stage = Stage(dvc_repo) +def test_str_on_absolute_path(dvc): + stage = Stage(dvc) path = os.path.abspath(os.path.join("path", "to", "file")) output = OutputLOCAL(stage, path, cache=False)