summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKirill Isakov <ukwt@ya.ru>2016-04-13 22:06:00 +0600
committerKirill Isakov <ukwt@ya.ru>2016-04-13 22:06:00 +0600
commitd54e82dfb93bf6e0beca31601382c0a23818ec82 (patch)
tree44faeef21dfca58ae4b561ad7bf10f2555f7afeb /tests
parentd0001f10e6c604f3094d728bed703a60baa9ae17 (diff)
downloadsearxng-d54e82dfb93bf6e0beca31601382c0a23818ec82.tar.gz
searxng-d54e82dfb93bf6e0beca31601382c0a23818ec82.zip
Revert to using random UA in Reddit search engine
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/engines/test_reddit.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/unit/engines/test_reddit.py b/tests/unit/engines/test_reddit.py
index 9bbf6301c..51589e300 100644
--- a/tests/unit/engines/test_reddit.py
+++ b/tests/unit/engines/test_reddit.py
@@ -3,7 +3,6 @@ import mock
from searx.engines import reddit
from searx.testing import SearxTestCase
from datetime import datetime
-from searx.utils import searx_useragent
class TestRedditEngine(SearxTestCase):
@@ -15,7 +14,6 @@ class TestRedditEngine(SearxTestCase):
self.assertTrue('url' in params)
self.assertTrue(query in params['url'])
self.assertTrue('reddit.com' in params['url'])
- self.assertEqual(params['headers']['User-Agent'], searx_useragent())
def test_response(self):
resp = mock.Mock(text='{}')