[fix]torrentz unit_tests timezone fix

This commit is contained in:
misnyo 2017-08-25 01:11:02 +02:00
parent d14e2781b2
commit 2098e1b7ff

View file

@ -67,7 +67,7 @@ class TestTorrentzEngine(SearxTestCase):
self.assertEqual(r['url'], 'https://torrentz2.eu/4362e08b1d80e1820fb2550b752f9f3126fe76d6') self.assertEqual(r['url'], 'https://torrentz2.eu/4362e08b1d80e1820fb2550b752f9f3126fe76d6')
self.assertEqual(r['title'], 'Completely valid info books ebooks') self.assertEqual(r['title'], 'Completely valid info books ebooks')
# 22 Nov 2015 03:01:42 # 22 Nov 2015 03:01:42
self.assertEqual(r['publishedDate'], datetime(2017, 8, 24, 19, 32, 4)) self.assertEqual(r['publishedDate'], datetime(2017, 8, 24, 17, 32, 4))
self.assertEqual(r['seed'], 14) self.assertEqual(r['seed'], 14)
self.assertEqual(r['leech'], 1) self.assertEqual(r['leech'], 1)
self.assertEqual(r['filesize'], 30 * 1024 * 1024) self.assertEqual(r['filesize'], 30 * 1024 * 1024)