Skip to content

Commit

Permalink
Switch invalid lib test to 'modules' command
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflester committed Nov 9, 2020
1 parent 55794e7 commit 75c06fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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/", "provision"])
result = helpers.execute_command(["-v", "--env", "LIB_PATH=/tmp/", "modules"])

assert result.exit_code == 2
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/", "provision"]
["-v", "--env", "LIB_PATH=/gucci-is-overrated/", "modules"]
)

assert result.exit_code == 2
Expand Down

0 comments on commit 75c06fe

Please sign in to comment.