From b044bcce5edbe1d8549970b1b426cb1b14efe073 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 5 May 2023 03:50:18 +0300 Subject: [PATCH] tests: lockfile: use different way of changing a cmd --- tests/func/test_lockfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/func/test_lockfile.py b/tests/func/test_lockfile.py index 38097fe13..d78d0300c 100644 --- a/tests/func/test_lockfile.py +++ b/tests/func/test_lockfile.py @@ -95,7 +95,9 @@ def test_cmd_changes_other_orders_are_preserved(tmp_dir, dvc, run_head): # let's change cmd in pipeline file # it should only change "cmd", otherwise it should be # structurally same as cmd - stage.cmd = " ".join(stage.cmd.split()) + new_cmd = "python head.py foo bar foobar" + assert stage.cmd != new_cmd # sanity check + stage.cmd = new_cmd stage.dvcfile._dump_pipeline_file(stage) initial_content["stages"]["copy-first-line"]["cmd"] = stage.cmd