Skip to content

Commit

Permalink
Deflake a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Dec 16, 2024
1 parent b0ec142 commit 697f923
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/unit/test_graph_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,28 +145,28 @@ def test_graph_syntax_errors_2(seq, graph, expected_err):
# Yes I know it's circular, but it's here to
# demonstrate that the test below is broken:
"foo:finished => foo",
'Output foo:succeeded can\'t be both required and'
' optional',
'Output foo:succeeded can\'t be both required and optional',
id='finish-implies-success-optional'
),
param(
"foo[-P1]:finish => foo",
'Output foo:succeeded can\'t be both required and'
' optional',
'Output foo:succeeded can\'t be both required and optional',
id='finish-implies-success-optional-offset'
),
param(
"foo[-P1]:succeeded | foo[-P1]:failed => bar",
(
'Opposite outputs foo:succeeded and foo:failed'
' must both be optional if both are used'
),
# order of outputs varies in the error message
'must both be optional if both are used',
id='succeed-or-failed-mustbe-optional'
),
param(
"foo[-P1]:succeeded? | foo[-P1]:failed? => foo",
'Output foo:succeeded can\'t be both required and'
' optional',
# Order of processing can result in different error messages
# (a) foo:succeeded can't be both optional and required
# (b) foo:succeeded and foo:failed most both be optional
# if both are used.
# The word "optional" is common to both. Not ideal!
'optional',
id='succeed-or-failed-implies-success-optional'
),
]
Expand Down

0 comments on commit 697f923

Please sign in to comment.