refactor: update test case to use consistent echo commands in post tasks
All checks were successful
CI / test (3.13) (push) Successful in 44s

This commit is contained in:
Alexander Kalinovsky
2025-08-25 20:12:47 +03:00
parent e5cc3cf4c7
commit bb604b0b74

View File

@@ -340,9 +340,7 @@ class TestRunPostTasks:
def test_run_post_tasks_without_conditions(self, temp_dir: Path) -> None: def test_run_post_tasks_without_conditions(self, temp_dir: Path) -> None:
"""Test running post tasks without conditions.""" """Test running post tasks without conditions."""
spec = { spec = {"post_tasks": [{"run": ["echo", "hello"]}, {"run": ["echo", "world"]}, {"run": ["echo", "test"]}]}
"post_tasks": [{"run": ["echo", "hello"]}, {"run": ["command", "hello"]}, {"run": ["command", "world"]}]
}
context: dict[str, str] = {} context: dict[str, str] = {}
cwd = temp_dir / "test_cwd" cwd = temp_dir / "test_cwd"
cwd.mkdir(parents=True, exist_ok=True) cwd.mkdir(parents=True, exist_ok=True)