Encodes the valid exit codes by pytest. Currently users and plugins may supply other exit codes as well. .. versionadded:: 5.0
| 99 | |
| 100 | @final |
| 101 | class ExitCode(enum.IntEnum): |
| 102 | """Encodes the valid exit codes by pytest. |
| 103 | |
| 104 | Currently users and plugins may supply other exit codes as well. |
| 105 | |
| 106 | .. versionadded:: 5.0 |
| 107 | """ |
| 108 | |
| 109 | #: Tests passed. |
| 110 | OK = 0 |
| 111 | #: Tests failed. |
| 112 | TESTS_FAILED = 1 |
| 113 | #: pytest was interrupted. |
| 114 | INTERRUPTED = 2 |
| 115 | #: An internal error got in the way. |
| 116 | INTERNAL_ERROR = 3 |
| 117 | #: pytest was misused. |
| 118 | USAGE_ERROR = 4 |
| 119 | #: pytest couldn't find tests. |
| 120 | NO_TESTS_COLLECTED = 5 |
| 121 | #: All tests pass, but maximum number of warnings exceeded. |
| 122 | MAX_WARNINGS_ERROR = 6 |
| 123 | |
| 124 | __module__ = "pytest" |
| 125 | |
| 126 | |
| 127 | class ConftestImportFailure(Exception): |
no outgoing calls