Skip to content

Commit

Permalink
fix a flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Jan 9, 2024
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
Expand Up @@ -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):
Expand Down

0 comments on commit fd5c3b3

Please sign in to comment.