Skip to content

Commit

Permalink
fix a flaky test
Browse files Browse the repository at this point in the history
mcflugen committed Jan 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ade3dad commit fd5c3b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/cli_test.py
Original file line number Diff line number Diff line change
@@ -25,9 +25,10 @@ def test_cli_help(capsys):


def test_cli_default(capsys):
assert main(["MyBmi"]) == 0
exec(capsys.readouterr().out)
assert "MyBmi" in globals()
assert main(["MyUniqueBmi"]) == 0
globs = {}
exec(capsys.readouterr().out, globs)
assert "MyUniqueBmi" in globs


def test_cli_wraps_lines(capsys):

0 comments on commit fd5c3b3

Please sign in to comment.