summaryrefslogtreecommitdiff
path: root/searx/tests
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2015-02-08 22:01:24 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2015-02-08 22:01:24 +0100
commit832ea60e3d19add2ffa857bc420ff33af83aac5c (patch)
treee0faf5b4a51d7e055fc11a29a12f3328f35f4f51 /searx/tests
parente7de9674b14c2ff06fac009274742819d6468138 (diff)
downloadsearxng-832ea60e3d19add2ffa857bc420ff33af83aac5c.tar.gz
searxng-832ea60e3d19add2ffa857bc420ff33af83aac5c.zip
[fix] pep8, tests
Diffstat (limited to 'searx/tests')
-rw-r--r--searx/tests/engines/test_bing_images.py1
-rw-r--r--searx/tests/engines/test_blekko_images.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/searx/tests/engines/test_bing_images.py b/searx/tests/engines/test_bing_images.py
index 59c134623..a1d96b06e 100644
--- a/searx/tests/engines/test_bing_images.py
+++ b/searx/tests/engines/test_bing_images.py
@@ -12,6 +12,7 @@ class TestBingImagesEngine(SearxTestCase):
dicto = defaultdict(dict)
dicto['pageno'] = 1
dicto['language'] = 'fr_FR'
+ dicto['safesearch'] = 1
params = bing_images.request(query, dicto)
self.assertTrue('url' in params)
self.assertTrue(query in params['url'])
diff --git a/searx/tests/engines/test_blekko_images.py b/searx/tests/engines/test_blekko_images.py
index 6a5388aae..793fadbad 100644
--- a/searx/tests/engines/test_blekko_images.py
+++ b/searx/tests/engines/test_blekko_images.py
@@ -10,6 +10,7 @@ class TestBlekkoImagesEngine(SearxTestCase):
query = 'test_query'
dicto = defaultdict(dict)
dicto['pageno'] = 0
+ dicto['safesearch'] = 1
params = blekko_images.request(query, dicto)
self.assertTrue('url' in params)
self.assertTrue(query in params['url'])