diff options
author | Alexandre Flament <alex@al-f.net> | 2022-01-05 19:13:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 19:13:48 +0100 |
commit | 9004e84b6e33c0a64fc6f4413734c9bdfdb118f6 (patch) | |
tree | 567cb29d375ea47bb0f1f209742fbbed35353fe3 /tests | |
parent | d3ecadd3f8276a4f80e2dbe03aadb2a1e0abe105 (diff) | |
parent | e64c3deab72ee579550efe240882e8ca2537caaf (diff) | |
download | searxng-9004e84b6e33c0a64fc6f4413734c9bdfdb118f6.tar.gz searxng-9004e84b6e33c0a64fc6f4413734c9bdfdb118f6.zip |
Merge pull request #596 from dalf/upgrade-httpx
Upgrade httpx
Diffstat (limited to 'tests')
-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) |