From ee023b6e4b309e9eaad0daeb62c8555850a9cb08 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Fri, 8 Nov 2024 14:29:55 +0100 Subject: [PATCH] fix: generate test data in the right directory --- tests/test_wc_workflow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_wc_workflow.py b/tests/test_wc_workflow.py index fc18fa2..8b6f203 100644 --- a/tests/test_wc_workflow.py +++ b/tests/test_wc_workflow.py @@ -28,4 +28,6 @@ def test_parse_config_file(config_file): @pytest.mark.skip(reason="don't run it each time, uncomment to regenerate serilaized data") @pytest.mark.parametrize("config_file", config_test_files) def test_serialize_workflow(config_file): - Path(config_file).with_suffix(".txt").write_text(str(Workflow.from_yaml(config_file))) + config_path = Path(config_file) + reference_path = (config_path.parent/".."/"data"/config_path.name).with_suffix('.txt') + reference_path.write_text(str(Workflow.from_yaml(config_file)))