Skip to content

Commit

Permalink
tests(time): actually fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Dec 2, 2023
1 parent 9309153 commit a3ac345
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_time.py
Expand Up @@ -5,6 +5,7 @@

import mock
import pytest
from dateutil import tz

import pytool

Expand Down Expand Up @@ -35,7 +36,10 @@ def test_utc_makes_tzaware_utc_datetime():
stamp = pytool.time.utc(2023, 12, 1)
assert stamp.tzinfo == pytool.time.UTC()
assert stamp == datetime(2023, 12, 1, tzinfo=pytool.time.UTC())
assert stamp == pytool.time.as_utc(datetime(2023, 11, 30, 16, 0))
expected = pytool.time.as_utc(
datetime(2023, 11, 30, 16, 0, tzinfo=tz.gettz("America/Los_Angeles"))
)
assert stamp == expected


def test_trim_time():
Expand Down

0 comments on commit a3ac345

Please sign in to comment.