From 4ab438b2ca53c7b61fa7688ff0d46546e033d0a8 Mon Sep 17 00:00:00 2001 From: Deniz Saner Date: Tue, 10 Oct 2023 17:19:01 +0200 Subject: [PATCH] include naive datetime object as example --- tests/enlyze/test_validators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/enlyze/test_validators.py b/tests/enlyze/test_validators.py index 04b4c70..519324d 100644 --- a/tests/enlyze/test_validators.py +++ b/tests/enlyze/test_validators.py @@ -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 @@ -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