Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Jan 29, 2025
1 parent 749b8ce commit 9d0de73
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,13 +1175,16 @@ def WorkflowConfig__assert_err_raised():
WorkflowConfig__assert_err_raised()


def test_undefined_custom_output(tmp_flow_config: Callable):
@pytest.mark.parametrize(
'graph', (('foo:x => bar'), ('foo:x'))
)
def test_undefined_custom_output(graph: str, tmp_flow_config: Callable):
"""Test error on undefined custom output referenced in graph."""
id_ = 'custom_out1'
flow_file = tmp_flow_config(id_, """
flow_file = tmp_flow_config(id_, f"""
[scheduling]
[[graph]]
R1 = "foo:x => bar"
R1 = "{graph}"
[runtime]
[[foo, bar]]
""")
Expand Down

0 comments on commit 9d0de73

Please sign in to comment.