diff options
author | Alexandre Flament <alex@al-f.net> | 2021-12-11 13:17:04 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-01-05 18:46:00 +0100 |
commit | e64c3deab72ee579550efe240882e8ca2537caaf (patch) | |
tree | 506ca13bfd55a98f67a72203841833f9772f278f /tests/unit | |
parent | 00d3a7477c01981a6ef2d396332670ad5b831fa6 (diff) | |
download | searxng-e64c3deab72ee579550efe240882e8ca2537caaf.tar.gz searxng-e64c3deab72ee579550efe240882e8ca2537caaf.zip |
[mod] upgrade httpx 0.21.2
httpx 0.21.2 and httpcore 0.14.4 fix multiple issues:
* https://github.com/encode/httpx/releases/tag/0.21.2
* https://github.com/encode/httpcore/releases/tag/0.14.4
so most of the workarounds in searx.network have been removed.
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/network/test_network.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/network/test_network.py b/tests/unit/network/test_network.py index d25a0d77b..4253e69ac 100644 --- a/tests/unit/network/test_network.py +++ b/tests/unit/network/test_network.py @@ -76,13 +76,15 @@ class TestNetwork(SearxTestCase): 'verify': True, 'max_redirects': 5, 'timeout': 2, + 'allow_redirects': True, } - kwargs_client = Network.get_kwargs_clients(kwargs) + kwargs_client = Network.extract_kwargs_clients(kwargs) self.assertEqual(len(kwargs_client), 2) - self.assertEqual(len(kwargs), 1) + self.assertEqual(len(kwargs), 2) self.assertEqual(kwargs['timeout'], 2) + self.assertEqual(kwargs['follow_redirects'], True) self.assertTrue(kwargs_client['verify']) self.assertEqual(kwargs_client['max_redirects'], 5) |