From d6d80a17444c90259c5bfdacb84c61e6bfece655 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 5 Jan 2023 11:38:41 +0100 Subject: Merging upstream version 3.0.0~a1. Signed-off-by: Daniel Baumann --- tests/date/test_construct.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/date/test_construct.py (limited to 'tests/date/test_construct.py') diff --git a/tests/date/test_construct.py b/tests/date/test_construct.py new file mode 100644 index 0000000..5b6eb78 --- /dev/null +++ b/tests/date/test_construct.py @@ -0,0 +1,16 @@ +from __future__ import annotations + +from pendulum import Date +from tests.conftest import assert_date + + +def test_construct(): + d = Date(2016, 10, 20) + + assert_date(d, 2016, 10, 20) + + +def test_today(): + d = Date.today() + + assert isinstance(d, Date) -- cgit v1.2.3