(executor)
| 135 | |
| 136 | @dbtest |
| 137 | def test_invalid_syntax(executor): |
| 138 | with pytest.raises(pymysql.ProgrammingError) as excinfo: |
| 139 | run(executor, "invalid syntax!") |
| 140 | assert "You have an error in your SQL syntax;" in str(excinfo.value) |
| 141 | |
| 142 | |
| 143 | @dbtest |