Skip to content

Commit

Permalink
fix: generate test data in the right directory
Browse files Browse the repository at this point in the history
  • Loading branch information
leclairm committed Nov 8, 2024
1 parent 78fa026 commit ee023b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_wc_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

0 comments on commit ee023b6

Please sign in to comment.