1
0
Fork 0
This commit is contained in:
Andrew MacFie 2024-03-26 12:59:07 +07:00
parent a14bb23128
commit 3cc5f3f462
1 changed files with 6 additions and 3 deletions

View File

@ -220,10 +220,13 @@ def test_database_list(executor):
@dbtest
def test_invalid_syntax(executor, exception_formatter):
result = run(executor, "invalid syntax!", exception_formatter=lambda x:
main_exception_formatter(x, verbose_errors=False))
result = run(
executor,
"invalid syntax!",
exception_formatter=lambda x: main_exception_formatter(x, verbose_errors=False),
)
assert 'syntax error at or near "invalid"' in result[0]
assert 'SQLSTATE' not in result[0]
assert "SQLSTATE" not in result[0]
@dbtest