Skip to content

Commit

Permalink
🐛 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Aug 6, 2024
1 parent 05c9318 commit 6e85fe9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def test_date_parser():

assert DateParser.parse("2021-01-01") == datetime(2021, 1, 1)
assert DateParser.parse("2021-01-01 12:34:56") == datetime(2021, 1, 1, 12, 34, 56)
assert DateParser.parse("1m") == datetime.now() + timedelta(minutes=1)
assert DateParser.parse("h3") == datetime.now() + timedelta(hours=3)
assert DateParser.parse("1m").replace(microsecond=0) == datetime.now().replace(microsecond=0) + timedelta(minutes=1)
assert DateParser.parse("h3").replace(microsecond=0) == datetime.now().replace(microsecond=0) + timedelta(hours=3)


def test_safe_eval():
from tarina import safe_eval
Expand Down

0 comments on commit 6e85fe9

Please sign in to comment.