summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/robot/settings_robot.yml2
-rw-r--r--tests/unit/network/test_network.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/robot/settings_robot.yml b/tests/robot/settings_robot.yml
index db22cce14..226704803 100644
--- a/tests/robot/settings_robot.yml
+++ b/tests/robot/settings_robot.yml
@@ -7,7 +7,7 @@ brand:
git_branch: master
issue_url: https://github.com/searxng/searxng/issues
new_issue_url: https://github.com/searxng/searxng/issues/new
- docs_url: https://searxng.github.io/searxng
+ docs_url: https://docs.searxng.org
public_instances: https://searx.space
wiki_url: https://github.com/searxng/searxng/wiki
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)