Skip to content

Commit

Permalink
Fixed security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dhondta committed Oct 10, 2023
1 parent a285d0f commit afe7111
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
6 changes: 4 additions & 2 deletions tests/test_helpers_common.py
Expand Up @@ -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
Expand Down Expand Up @@ -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("<function "))
Expand Down

0 comments on commit afe7111

Please sign in to comment.