Skip to content

Commit

Permalink
Test fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niremizov-Omcode committed Sep 12, 2024
1 parent bdb2696 commit 74de403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def test_cli_stream(testdir):
assert format_error in result.output

result = runner.invoke(
cli, ["--format", "csv", "--output", outfile, "stream", infile, "--margins", "1.5 0.5 0.8"]
cli, [ "--margins", "1.5 0.5 0.8", "--format", "csv", "--output", outfile, "stream", infile]
)
assert result.exit_code == 0
assert result.output == "Found 1 tables\n"

result = runner.invoke(
cli, ["--format", "csv", "--output", outfile, "stream", infile, "--margins", "1.5 0.5"]
cli, ["--margins", "1.5 0.5", "--format", "csv", "--output", outfile, "stream", infile]
)
output_error = "Error: Invalid value for '-M' / '--margins': '--format' is not a valid float."
assert output_error in result.output
Expand Down

0 comments on commit 74de403

Please sign in to comment.