MCPcopy
hub / github.com/PyCQA/flake8 / test_application_exit_code

Function test_application_exit_code

tests/unit/test_application.py:38–46  ·  view source on GitHub ↗

Verify Application.exit_code returns the correct value.

(
    result_count, catastrophic, exit_zero, value, application
)

Source from the content-addressed store, hash-verified

36 ],
37)
38def 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

Callers

nothing calls this directly

Calls 2

exit_codeMethod · 0.80
optionsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…