Skip to content

Commit

Permalink
include naive datetime object as example
Browse files Browse the repository at this point in the history
  • Loading branch information
denizs committed Oct 10, 2023
1 parent 80bc458 commit 4ab438b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/enlyze/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from uuid import UUID

import pytest
from hypothesis import given
from hypothesis import example, given
from hypothesis import strategies as st

from enlyze.errors import EnlyzeError, ResamplingValidationError
Expand Down Expand Up @@ -31,6 +31,7 @@
timezones=st.timezones(),
)
)
@example(dt=datetime(2021, 1, 1, 0, 0, 0))
def test_ensure_datetime_aware(dt):
datetime_with_timezone = _ensure_datetime_aware(dt)
assert datetime_with_timezone.utcoffset() is not None
Expand Down

0 comments on commit 4ab438b

Please sign in to comment.