mirror of
https://github.com/searxng/searxng.git
synced 2025-07-16 09:49:21 +02:00
Fix anomalous backslash in string
This commit is contained in:
parent
3fd405dcd3
commit
b3ab221b98
21 changed files with 47 additions and 47 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue