mirror of
https://github.com/simonw/dclient.git
synced 2026-09-28 21:04:14 +02:00
Better error tracebacks, closes #11
This commit is contained in:
parent
cbdc94b2e8
commit
d58100a0d5
2 changed files with 34 additions and 4 deletions
|
|
@ -17,7 +17,10 @@ def test_query_error(httpx_mock):
|
|||
runner = CliRunner()
|
||||
result = runner.invoke(cli, ["query", "https://example.com", "hello"])
|
||||
assert result.exit_code == 1
|
||||
assert result.output == "Error: Invalid SQL: Statement must be a SELECT\n"
|
||||
assert (
|
||||
result.output
|
||||
== "Error: 400 status code. Invalid SQL: Statement must be a SELECT\n"
|
||||
)
|
||||
|
||||
|
||||
def test_query(httpx_mock):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue