Test from_str with invalid values.
()
| 27 | |
| 28 | |
| 29 | def test_from_str_with_invalid_values(): |
| 30 | """Test from_str with invalid values.""" |
| 31 | with pytest.raises(KeyError): |
| 32 | ExitCode.from_str("invalid_name") |
| 33 | with pytest.raises(ValueError, match="is not a valid ExitCode"): |
| 34 | ExitCode.from_str("999") # Out of range decimal |
| 35 | with pytest.raises(KeyError): |
| 36 | ExitCode.from_str("") |
| 37 | with pytest.raises(KeyError): |
| 38 | ExitCode.from_str(" ") |
nothing calls this directly
no test coverage detected
searching dependent graphs…