summaryrefslogtreecommitdiffstats
path: root/tests/date/test_construct.py
blob: 5b6eb783ddc76ffdc4016416c00c170dd92c47f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)