Verify Application.exit_code returns the correct value.
(
result_count, catastrophic, exit_zero, value, application
)
| 36 | ], |
| 37 | ) |
| 38 | def test_application_exit_code( |
| 39 | result_count, catastrophic, exit_zero, value, application |
| 40 | ): |
| 41 | """Verify Application.exit_code returns the correct value.""" |
| 42 | application.result_count = result_count |
| 43 | application.catastrophic_failure = catastrophic |
| 44 | application.options = options(exit_zero=exit_zero) |
| 45 | |
| 46 | assert application.exit_code() == value |