|
@@ -27,19 +27,19 @@ class TestGigablastEngine(SearxTestCase):
|
27
|
27
|
|
28
|
28
|
json = """{"results": [
|
29
|
29
|
{
|
30
|
|
- "title":"South by Southwest 2016 Music, Film and Interactive Festivals - Austin Texas",
|
|
30
|
+ "title":"South by Southwest 2016",
|
31
|
31
|
"dmozEntry":{
|
32
|
32
|
"dmozCatId":1041152,
|
33
|
33
|
"directCatId":1,
|
34
|
|
- "dmozCatStr":"Top: Regional: North America: United States: Texas: Arts and Entertainment: Events",
|
|
34
|
+ "dmozCatStr":"Top: Regional: North America: United States",
|
35
|
35
|
"dmozTitle":"South by Southwest (SXSW)",
|
36
|
|
- "dmozSum":"Annual music, film, and interactive conference and festival held in Austin. Includes schedules and band and film lists.",
|
|
36
|
+ "dmozSum":"Annual music, film, and interactive conference.",
|
37
|
37
|
"dmozAnchor":""
|
38
|
38
|
},
|
39
|
39
|
"dmozEntry":{
|
40
|
40
|
"dmozCatId":763945,
|
41
|
41
|
"directCatId":1,
|
42
|
|
- "dmozCatStr":"Top: Regional: North America: United States: Texas: Localities: A: Austin: Arts and Entertainment: Events",
|
|
42
|
+ "dmozCatStr":"Top: Regional: North America: United States",
|
43
|
43
|
"dmozTitle":"South by Southwest (SXSW)",
|
44
|
44
|
"dmozSum":"",
|
45
|
45
|
"dmozAnchor":"www.sxsw.com"
|
|
@@ -47,9 +47,9 @@ class TestGigablastEngine(SearxTestCase):
|
47
|
47
|
"dmozEntry":{
|
48
|
48
|
"dmozCatId":761446,
|
49
|
49
|
"directCatId":1,
|
50
|
|
- "dmozCatStr":"Top: Regional: North America: United States: Texas: Travel and Tourism: Attractions",
|
|
50
|
+ "dmozCatStr":"Top: Regional: North America: United States",
|
51
|
51
|
"dmozTitle":"South by Southwest (SXSW)",
|
52
|
|
- "dmozSum":"Music, film, and interactive conference and festival. Includes schedules and band and film lists.",
|
|
52
|
+ "dmozSum":"Music, film, and interactive conference and festival.",
|
53
|
53
|
"dmozAnchor":""
|
54
|
54
|
},
|
55
|
55
|
"indirectDmozCatId":1041152,
|
|
@@ -80,6 +80,6 @@ class TestGigablastEngine(SearxTestCase):
|
80
|
80
|
results = gigablast.response(response)
|
81
|
81
|
self.assertEqual(type(results), list)
|
82
|
82
|
self.assertEqual(len(results), 1)
|
83
|
|
- self.assertEqual(results[0]['title'], 'South by Southwest 2016 Music, Film and Interactive Festivals - Austin Texas')
|
|
83
|
+ self.assertEqual(results[0]['title'], 'South by Southwest 2016')
|
84
|
84
|
self.assertEqual(results[0]['url'], 'www.sxsw.com')
|
85
|
85
|
self.assertEqual(results[0]['content'], 'This should be the content.')
|