Skip to content

Commit

Permalink
Update tests to clarify that whitespace between options is unsupported.
Browse files Browse the repository at this point in the history
  • Loading branch information
libklein committed Nov 30, 2024
1 parent de078a6 commit 92a6d81
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ def test_1_number():


def test_2_number():
result = runner.invoke(app, ["--number", "2, 3, 4.5"], catch_exceptions=False)
result = runner.invoke(app, ["--number", "2,3,4.5"], catch_exceptions=False)
assert result.exit_code == 0
assert "The sum is 9.5" in result.output


def test_3_number():
result = runner.invoke(app, ["--number", "2, 3, 4.5", "--number", "5"])
result = runner.invoke(app, ["--number", "2,3,4.5", "--number", "5"])
assert result.exit_code == 0
assert "The sum is 14.5" in result.output

Expand Down

0 comments on commit 92a6d81

Please sign in to comment.