diff --git a/pyproject.toml b/pyproject.toml index 90f60f7..95d38ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,8 +37,8 @@ classifiers = [ ] dependencies = [ "argcomplete>=3.0.8", - "asciistuff>=1.2.5", - "bitstring>3", + "asciistuff>=1.2.6", + "bitstring==4.0.2", "codext>=1.15.0", "coloredlogs", "colorful", diff --git a/requirements.txt b/requirements.txt index 7d43b8a..2a7b91e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ argcomplete>=3.0.8 -asciistuff>=1.2.5 +asciistuff>=1.2.6 bitstring>3 codext>=1.15.0 coloredlogs diff --git a/tests/test_helpers_common.py b/tests/test_helpers_common.py index 851f6b7..8473ace 100644 --- a/tests/test_helpers_common.py +++ b/tests/test_helpers_common.py @@ -3,8 +3,9 @@ """Common utility functions' tests. """ -import datetime import lazy_object_proxy +from datetime import datetime +from pytz import timezone from tinyscript.helpers.common import * from utils import remove, TestCase @@ -53,7 +54,8 @@ def test_common_utility_functions(self): self.assertEqual(f.read(), CONTENT) self.assertEqual(list(strings_from_file(FILE)), ["this is a ", " test"]) remove(FILE) - self.assertEqual(dateparse("2008"), datetime.datetime(2008, datetime.now().month, datetime.now().day)) + tz = timezone("Europe/London") + self.assertEqual(dateparse("2008"), datetime(2008, datetime.now(tz).month, datetime.now(tz).day)) def test_func(): pass self.assertTrue(repr(test_func).startswith("