MCPcopy Index your code
hub / github.com/dbcli/mycli / test_invalid_syntax

Function test_invalid_syntax

test/pytests/test_sqlexecute.py:137–140  ·  view source on GitHub ↗
(executor)

Source from the content-addressed store, hash-verified

135
136@dbtest
137def 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

Callers

nothing calls this directly

Calls 1

runFunction · 0.90

Tested by

no test coverage detected