MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / assert_time

Function assert_time

tests/conftest.py:59–71  ·  view source on GitHub ↗
(
    t: pendulum.Time,
    hour: int,
    minute: int,
    second: int,
    microsecond: int | None = None,
)

Source from the content-addressed store, hash-verified

57
58
59def assert_time(
60 t: pendulum.Time,
61 hour: int,
62 minute: int,
63 second: int,
64 microsecond: int | None = None,
65) -> None:
66 assert hour == t.hour
67 assert minute == t.minute
68 assert second == t.second
69
70 if microsecond is not None:
71 assert microsecond == t.microsecond
72
73
74def assert_duration(

Callers 7

test_parse_exactFunction · 0.90
test_timeFunction · 0.90
test_replaceFunction · 0.90
test_closest_with_timeFunction · 0.90
test_farthest_with_timeFunction · 0.90
test_initFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…