Skip to content

Commit ee842bf

Browse files
committed
Add test for situation where undefined optional outputs fail to raise an error everywhere in graph.
1 parent 21d18ba commit ee842bf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/unit/test_config.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,13 +1175,16 @@ def WorkflowConfig__assert_err_raised():
11751175
WorkflowConfig__assert_err_raised()
11761176

11771177

1178-
def test_undefined_custom_output(tmp_flow_config: Callable):
1178+
@pytest.mark.parametrize(
1179+
'graph', (('foo:x => bar'), ('foo:x'))
1180+
)
1181+
def test_undefined_custom_output(graph: str, tmp_flow_config: Callable):
11791182
"""Test error on undefined custom output referenced in graph."""
11801183
id_ = 'custom_out1'
1181-
flow_file = tmp_flow_config(id_, """
1184+
flow_file = tmp_flow_config(id_, f"""
11821185
[scheduling]
11831186
[[graph]]
1184-
R1 = "foo:x => bar"
1187+
R1 = "{graph}"
11851188
[runtime]
11861189
[[foo, bar]]
11871190
""")

0 commit comments

Comments
 (0)