diff options
author | misnyo <misnyo@misnyo.eu> | 2017-08-29 17:54:41 +0200 |
---|---|---|
committer | misnyo <misnyo@misnyo.eu> | 2017-08-29 17:54:41 +0200 |
commit | bf3f9a91fa3a07864f316ddd3a463ad45bd3d25d (patch) | |
tree | d7873eca5f88a81fbe5b010faf390c958dd14ebf | |
parent | 2098e1b7ff39fb24bbc2ad7f1800992f1748eba0 (diff) | |
download | searxng-bf3f9a91fa3a07864f316ddd3a463ad45bd3d25d.tar.gz searxng-bf3f9a91fa3a07864f316ddd3a463ad45bd3d25d.zip |
[fix]torrentz unit_tests timezone fix
-rw-r--r-- | tests/unit/engines/test_torrentz.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/engines/test_torrentz.py b/tests/unit/engines/test_torrentz.py index 271758da0..f483bf68c 100644 --- a/tests/unit/engines/test_torrentz.py +++ b/tests/unit/engines/test_torrentz.py @@ -67,7 +67,7 @@ class TestTorrentzEngine(SearxTestCase): self.assertEqual(r['url'], 'https://torrentz2.eu/4362e08b1d80e1820fb2550b752f9f3126fe76d6') self.assertEqual(r['title'], 'Completely valid info books ebooks') # 22 Nov 2015 03:01:42 - self.assertEqual(r['publishedDate'], datetime(2017, 8, 24, 17, 32, 4)) + self.assertEqual(r['publishedDate'], datetime.fromtimestamp(1503595924)) self.assertEqual(r['seed'], 14) self.assertEqual(r['leech'], 1) self.assertEqual(r['filesize'], 30 * 1024 * 1024) |