mirror of https://github.com/dbcli/pgcli
Blackify
This commit is contained in:
parent
a14bb23128
commit
3cc5f3f462
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue