Skip to content

Commit

Permalink
test_param_requires_value fix expected return code
Browse files Browse the repository at this point in the history
previously the test was expecting  EXIT_INTERRUPTED return code but pytest actualy returns EXIT_USAGEERROR return code
  • Loading branch information
vgramer committed Jan 8, 2019
1 parent ad8429a commit b65d104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def test_param_requires_value(testdir, required_value_parameter):
"""Verifies failure when not providing a value to a parameter that requires a value"""

result = testdir.runpytest(*[required_value_parameter])
assert result.ret == EXIT_INTERRUPTED
assert result.ret == EXIT_USAGEERROR
result.stderr.fnmatch_lines([
'*: error: argument *%s*: expected one argument' % required_value_parameter,
])
Expand Down

0 comments on commit b65d104

Please sign in to comment.