From 1e8dea1c07849e22f0a047e3b990d44b17b99676 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 17 Jul 2023 14:50:10 -0700 Subject: [PATCH] Fixed failing test --- tests/test_query.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_query.py b/tests/test_query.py index d5ad08c..d565750 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -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"])