Skip to content

Commit

Permalink
adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shabanzd committed Dec 26, 2023
1 parent a12e9d3 commit cc19129
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ def test_main():
runner = CliRunner()
result = runner.invoke(main, ["--help"])
assert result.exit_code == 0
assert "-rp" in result.output
assert "-if" in result.output
assert "-cf" in result.output
assert "-r" in result.output
assert "-i" in result.output
assert "-c" in result.output

result = runner.invoke(main)
assert result.exit_code != 0
assert "Error: Missing option '--input_file' / '-if'" in result.output
assert "Error: Missing option '--input_file' / '-i'" in result.output

result = runner.invoke(main, ["-if", "./tests/ci_inputs/deb_packages.in"])
result = runner.invoke(main, ["-i", "./tests/ci_inputs/deb_packages.in"])
assert result.exit_code != 0
assert "Error: Missing option '--storage_config_file' / '-cf'" in result.output
assert "Error: Missing option '--config_file' / '-c'" in result.output


if __name__ == "__main__":
Expand Down

0 comments on commit cc19129

Please sign in to comment.