diff options
| author | 2024-09-28 20:01:31 -0400 | |
|---|---|---|
| committer | 2024-09-28 20:01:31 -0400 | |
| commit | 5a7a504aeab6c6de4b76e7f69a6dae5308bd6c0a (patch) | |
| tree | 91d6f25b3b51e7acbd1f61278709eea080f4aa78 /test/test_text.py | |
| parent | 817f6c044037816056a8aadf6f95394f851df732 (diff) | |
| parent | 1a457ed68769880ab7760e0746f0cbbd9ca00487 (diff) | |
Update upstream source from tag 'upstream/1.27.5'
Update to upstream version '1.27.5'
with Debian dir 2ce58072136364618b4bed910cf33746af25cbd7
Diffstat (limited to 'test/test_text.py')
| -rw-r--r-- | test/test_text.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_text.py b/test/test_text.py index c99729c..084436b 100644 --- a/test/test_text.py +++ b/test/test_text.py @@ -14,7 +14,7 @@ import unittest import datetime sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -from gallery_dl import text # noqa E402 +from gallery_dl import text, util # noqa E402 INVALID = ((), [], {}, None, 1, 2.3) @@ -414,8 +414,8 @@ class TestText(unittest.TestCase): self.assertEqual(f(value), {}) def test_parse_timestamp(self, f=text.parse_timestamp): - null = datetime.datetime.utcfromtimestamp(0) - value = datetime.datetime.utcfromtimestamp(1555816235) + null = util.datetime_utcfromtimestamp(0) + value = util.datetime_utcfromtimestamp(1555816235) self.assertEqual(f(0) , null) self.assertEqual(f("0") , null) @@ -427,7 +427,7 @@ class TestText(unittest.TestCase): self.assertEqual(f(value, "foo"), "foo") def test_parse_datetime(self, f=text.parse_datetime): - null = datetime.datetime.utcfromtimestamp(0) + null = util.datetime_utcfromtimestamp(0) self.assertEqual(f("1970-01-01T00:00:00+00:00"), null) self.assertEqual(f("1970-01-01T00:00:00+0000") , null) |
