MCPcopy
hub / github.com/dbcli/pgcli / test_invalid_syntax

Function test_invalid_syntax

tests/test_pgexecute.py:216–223  ·  view source on GitHub ↗
(executor, exception_formatter)

Source from the content-addressed store, hash-verified

214
215@dbtest
216def test_invalid_syntax(executor, exception_formatter):
217 result = run(
218 executor,
219 "invalid syntax!",
220 exception_formatter=lambda x: main_exception_formatter(x, verbose_errors=False),
221 )
222 assert 'syntax error at or near "invalid"' in result[0]
223 assert "SQLSTATE" not in result[0]
224
225
226@dbtest

Callers

nothing calls this directly

Calls 1

runFunction · 0.90

Tested by

no test coverage detected