forked from zaclys/searxng
[fix] pdbe test
This commit is contained in:
parent
1088c2a75d
commit
9e79ad4bde
|
@ -105,5 +105,5 @@ class TestPdbeEngine(SearxTestCase):
|
||||||
results = pdbe.response(response)
|
results = pdbe.response(response)
|
||||||
self.assertEqual(type(results), list)
|
self.assertEqual(type(results), list)
|
||||||
self.assertEqual(len(results), 1)
|
self.assertEqual(len(results), 1)
|
||||||
self.assertEqual(results[0]['title'], 'OBSOLETE ENTRY TEST (OBSOLETE)')
|
self.assertEqual(results[0]['title'], 'OBSOLETE ENTRY TEST (OBSOLETE)')
|
||||||
self.assertTrue(results[0]['content'].startswith('<em>This entry has been superseded by'))
|
self.assertTrue(results[0]['content'].startswith('This entry has been superseded by'))
|
||||||
|
|
Loading…
Reference in New Issue