()
| 7 | |
| 8 | |
| 9 | def test_error_init_sqlstate(): |
| 10 | error = err.Error(1234, "boom", sqlstate="42000") |
| 11 | assert error.args == (1234, "boom") |
| 12 | assert error.sqlstate == "42000" |
| 13 | |
| 14 | error = err.Error(1234, "boom") |
| 15 | assert error.args == (1234, "boom") |
| 16 | assert error.sqlstate is None |
| 17 | |
| 18 | |
| 19 | def test_raise_mysql_exception(): |
nothing calls this directly
no outgoing calls
no test coverage detected