summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_flickr.py
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-07-11 20:29:47 +0700
committerstepshal <nessento@openmailbox.org>2016-07-11 23:53:13 +0700
commitb3ab221b9808ba2b7b01d417210af9b9527e661c (patch)
tree6ee035fb32906228376d9473e8524e8ed2be745a /tests/unit/engines/test_flickr.py
parent3fd405dcd3fd46d5b6f2fe1df625eedf0f1fbe02 (diff)
Fix anomalous backslash in string
Diffstat (limited to 'tests/unit/engines/test_flickr.py')
-rw-r--r--tests/unit/engines/test_flickr.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/engines/test_flickr.py b/tests/unit/engines/test_flickr.py
index 8b39e922f..2d7472a92 100644
--- a/tests/unit/engines/test_flickr.py
+++ b/tests/unit/engines/test_flickr.py
@@ -27,7 +27,7 @@ class TestFlickrEngine(SearxTestCase):
response = mock.Mock(text='{"data": []}')
self.assertEqual(flickr.response(response), [])
- json = """
+ json = r"""
{ "photos": { "page": 1, "pages": "41001", "perpage": 100, "total": "4100032",
"photo": [
{ "id": "15751017054", "owner": "66847915@N08",
@@ -55,7 +55,7 @@ class TestFlickrEngine(SearxTestCase):
self.assertTrue('Owner' in results[0]['content'])
self.assertTrue('Description' in results[0]['content'])
- json = """
+ json = r"""
{ "photos": { "page": 1, "pages": "41001", "perpage": 100, "total": "4100032",
"photo": [
{ "id": "15751017054", "owner": "66847915@N08",
@@ -79,7 +79,7 @@ class TestFlickrEngine(SearxTestCase):
self.assertTrue('Owner' in results[0]['content'])
self.assertTrue('Description' in results[0]['content'])
- json = """
+ json = r"""
{ "photos": { "page": 1, "pages": "41001", "perpage": 100, "total": "4100032",
"photo": [
{ "id": "15751017054", "owner": "66847915@N08",
@@ -103,7 +103,7 @@ class TestFlickrEngine(SearxTestCase):
self.assertTrue('Owner' in results[0]['content'])
self.assertTrue('Description' in results[0]['content'])
- json = """
+ json = r"""
{ "photos": { "page": 1, "pages": "41001", "perpage": 100, "total": "4100032",
"photo": [
{ "id": "15751017054", "owner": "66847915@N08",
@@ -130,7 +130,7 @@ class TestFlickrEngine(SearxTestCase):
self.assertEqual(type(results), list)
self.assertEqual(len(results), 0)
- json = """
+ json = r"""
{"toto":[
{"id":200,"name":"Artist Name",
"link":"http:\/\/www.flickr.com\/artist\/1217","type":"artist"}