Skip to content

Commit

Permalink
fix: improved test flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Aug 20, 2024
1 parent 79355bc commit 0758c4d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,13 @@ def test_subagent(args: list[str], runner: CliRunner):

# apparently this is not obviously 610
accepteds = ["377", "610"]
assert any(accepted in result.output for accepted in accepteds)
assert any(accepted in result.output.split("```")[-1] for accepted in accepteds)
assert any([accepted in result.output for accepted in accepteds])
assert any(
[
accepted in "```".join(result.output.split("```")[-2:])
for accepted in accepteds
]
)


@pytest.mark.slow
Expand Down

0 comments on commit 0758c4d

Please sign in to comment.