(
d: pendulum.DateTime,
year: int,
month: int,
day: int,
hour: int | None = None,
minute: int | None = None,
second: int | None = None,
microsecond: int | None = None,
)
| 24 | |
| 25 | |
| 26 | def assert_datetime( |
| 27 | d: pendulum.DateTime, |
| 28 | year: int, |
| 29 | month: int, |
| 30 | day: int, |
| 31 | hour: int | None = None, |
| 32 | minute: int | None = None, |
| 33 | second: int | None = None, |
| 34 | microsecond: int | None = None, |
| 35 | ) -> None: |
| 36 | assert year == d.year |
| 37 | assert month == d.month |
| 38 | assert day == d.day |
| 39 | |
| 40 | if hour is not None: |
| 41 | assert hour == d.hour |
| 42 | |
| 43 | if minute is not None: |
| 44 | assert minute == d.minute |
| 45 | |
| 46 | if second is not None: |
| 47 | assert second == d.second |
| 48 | |
| 49 | if microsecond is not None: |
| 50 | assert microsecond == d.microsecond |
| 51 | |
| 52 | |
| 53 | def assert_date(d: pendulum.Date, year: int, month: int, day: int) -> None: |
no outgoing calls
no test coverage detected
searching dependent graphs…