From 9d7fba5c6127943a15ee07c13277c1cfeda5d79d Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Wed, 7 Jun 2023 10:28:54 +0545 Subject: [PATCH] fix tests (#9555) --- tests/func/test_repro.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/func/test_repro.py b/tests/func/test_repro.py index 86d37a131..f6e460bb9 100644 --- a/tests/func/test_repro.py +++ b/tests/func/test_repro.py @@ -173,8 +173,8 @@ def test_repro_when_cmd_changes(tmp_dir, dvc, run_copy, mocker): m = mocker.patch("dvc.stage.run.cmd_run", wraps=cmd_run) with modify_yaml("dvc.yaml") as d: - cmd = d["stages"]["copy-foo-bar"]["cmd"] - d["stages"]["copy-foo-bar"]["cmd"] = f"command {cmd}" + # change cmd spacing by two + d["stages"]["copy-foo-bar"]["cmd"] = " ".join(stage.cmd.split()) assert dvc.status([stage.addressing]) == {stage.addressing: ["changed command"]} assert dvc.reproduce(stage.addressing)[0] == stage