diff --git a/tests/unit/h_vialib/client_test.py b/tests/unit/h_vialib/client_test.py index 204039b..34ad7fa 100644 --- a/tests/unit/h_vialib/client_test.py +++ b/tests/unit/h_vialib/client_test.py @@ -112,7 +112,7 @@ def test_url_for_allows_you_to_override_options(self, client, content_type): override = {"via.client.openSidebar": "0"} final_url = client.url_for("http://example.com", content_type, options=override) - assert final_url == Any.url.containing_query(override) + assert final_url == Any.url().containing_query(override) def test_url_for_with_headers(self, client, Encryption): headers = {"some": "header"} @@ -121,7 +121,7 @@ def test_url_for_with_headers(self, client, Encryption): final_url = client.url_for("http://example.com", headers=headers) Encryption.return_value.encrypt_dict.assert_called_once_with(headers) - assert final_url == Any.url.containing_query( + assert final_url == Any.url().containing_query( {"via.secret.headers": "secure headers"} ) @@ -132,7 +132,7 @@ def test_url_for_with_query(self, client, Encryption): final_url = client.url_for("http://example.com", query=query) Encryption.return_value.encrypt_dict.assert_called_once_with(query) - assert final_url == Any.url.containing_query( + assert final_url == Any.url().containing_query( {"via.secret.query": "secure query"} ) diff --git a/tests/unit/h_vialib/configuration_test.py b/tests/unit/h_vialib/configuration_test.py index c0f05cb..bf6512d 100644 --- a/tests/unit/h_vialib/configuration_test.py +++ b/tests/unit/h_vialib/configuration_test.py @@ -78,11 +78,11 @@ def test_add_to_url(self): ) # Original via settings are wiped - assert url_with_config != Any.url.containing_query({"via.client.focus": "3"}) + assert url_with_config != Any.url().containing_query({"via.client.focus": "3"}) def assert_correct_params(self, via_params, client_params): assert via_params == {"setting": "setting_last"} - assert client_params == Any.dict.containing({"focus": "focus_last"}) + assert client_params == Any.dict().containing({"focus": "focus_last"}) @pytest.fixture def url_with_params(self, query_string):