Commit 13f9f986 authored by Alexander Pace's avatar Alexander Pace
Browse files


parent eca437fe
Pipeline #162373 passed with stages
in 16 minutes and 4 seconds
......@@ -89,15 +89,16 @@ def test_main_with_bad_response(main_tester, capsys, response_msg):
assert stdout.rstrip() == '{code} {reason}'.format(
code=status, reason=reason)
# Define an error response object:
err_response = Response()
err_response.status_code = 400
err_response.reason = 'Bad Request'
err_response._content = b'test'
EXCEPTION_DATA = [Exception('test'),
@pytest.mark.parametrize("exc", EXCEPTION_DATA) # noqa: E302
def test_main_with_exception_in_CLI_call(main_tester, capsys, exc):
"""Test CLI wrapper when CLI call raises exception"""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment