Merge pull request #1462 from PyCQA/test_name_too

fix test name after exit -> exit_code refactor
This commit is contained in:
Anthony Sottile 2021-11-14 19:41:20 -05:00 committed by GitHub
commit c0ddae2948
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,10 +35,10 @@ def application():
(2, True, True, 1),
],
)
def test_exit_does_raise(
def test_application_exit_code(
result_count, catastrophic, exit_zero, value, application
):
"""Verify Application.exit doesn't raise SystemExit."""
"""Verify Application.exit_code returns the correct value."""
application.result_count = result_count
application.catastrophic_failure = catastrophic
application.options = options(exit_zero=exit_zero)