mirror of
https://github.com/simonw/dclient.git
synced 2026-07-24 09:54:32 +02:00
Fixed failing test
This commit is contained in:
parent
b3b2b4764e
commit
1e8dea1c07
1 changed files with 3 additions and 1 deletions
|
|
@ -88,7 +88,9 @@ def test_aliases(mocker, tmpdir, httpx_mock):
|
|||
|
||||
# Should have hit https://example.com/foo.json
|
||||
url = httpx_mock.get_request().url
|
||||
assert url == "https://example.com/foo.json?sql=select+11+%2A+3&_shape=objects"
|
||||
assert url.host == "example.com"
|
||||
assert url.path == "/foo.json"
|
||||
assert dict(url.params) == {"sql": "select 11 * 3", "_shape": "objects"}
|
||||
|
||||
# Remove alias
|
||||
result = runner.invoke(cli, ["alias", "remove", "invalid"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue