remove unnecessary chdir

This commit is contained in:
Fábio Santos
2020-01-28 11:49:24 +00:00
parent 233790ced5
commit a7bad88159
+5 -6
View File
@@ -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")]