Skip to content

Commit

Permalink
Test lib checks against a command that requires a library
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflester committed Nov 9, 2020
1 parent b9e5af0 commit 55794e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/minipresto/test/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ def test_invalid_lib():
helpers.log_status(cast(FrameType, currentframe()).f_code.co_name)

# Real directory, but ain't a real library
result = helpers.execute_command(["-v", "--env", "LIB_PATH=/tmp/", "version"])
result = helpers.execute_command(["-v", "--env", "LIB_PATH=/tmp/", "provision"])

assert result.exit_code == 2
assert "Are you pointing to a valid library" in result.output
assert "You must provide a path to a compatible Minipresto library" in result.output

# Fake directory
result = helpers.execute_command(
["-v", "--env", "LIB_PATH=/gucci-is-overrated/", "version"]
["-v", "--env", "LIB_PATH=/gucci-is-overrated/", "provision"]
)

assert result.exit_code == 2
Expand Down

0 comments on commit 55794e7

Please sign in to comment.