diff --git a/tests/files/configs/test_config_large.txt b/tests/files/data/test_config_large.txt similarity index 100% rename from tests/files/configs/test_config_large.txt rename to tests/files/data/test_config_large.txt diff --git a/tests/files/configs/test_config_small.txt b/tests/files/data/test_config_small.txt similarity index 100% rename from tests/files/configs/test_config_small.txt rename to tests/files/data/test_config_small.txt diff --git a/tests/test_wc_workflow.py b/tests/test_wc_workflow.py index e2e490c..fc18fa2 100644 --- a/tests/test_wc_workflow.py +++ b/tests/test_wc_workflow.py @@ -15,7 +15,8 @@ def config_file_small(): @pytest.mark.parametrize("config_file", config_test_files) def test_parse_config_file(config_file): - reference_str = Path(config_file).with_suffix(".txt").read_text() + config_path = Path(config_file) + reference_str = (config_path.parent/".."/"data"/config_path.name).with_suffix('.txt').read_text() test_str = str(Workflow.from_yaml(config_file)) if test_str != reference_str: new_path = Path(config_file).with_suffix(".new.txt")