From a7bad881591f284129582dd925ef935fb59e0200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Tue, 28 Jan 2020 11:49:24 +0000 Subject: [PATCH] remove unnecessary chdir --- tests/func/test_pipeline.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/func/test_pipeline.py b/tests/func/test_pipeline.py index c88406e57..88096613b 100644 --- a/tests/func/test_pipeline.py +++ b/tests/func/test_pipeline.py @@ -110,12 +110,11 @@ def test_disconnected_stage(tmp_dir, dvc, caplog): ) args = ["pipeline", "show", "--outs", "--dot", final_stage.path] - with tmp_dir.chdir(): - command = CmdPipelineShow(args) - # Need to test __build_graph directly - nodes, edges, is_tree = command._CmdPipelineShow__build_graph( - final_stage.path, commands=False, outs=True - ) + command = CmdPipelineShow(args) + # Need to test __build_graph directly + nodes, edges, is_tree = command._CmdPipelineShow__build_graph( + final_stage.path, commands=False, outs=True + ) assert set(nodes) == set(["final", "derived1", "base"]) assert edges == [("final", "derived1"), ("derived1", "base")]