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

Function assert_diff

tests/test_helpers.py:18–34  ·  view source on GitHub ↗
(
    diff: PreciseDiff,
    years: int = 0,
    months: int = 0,
    days: int = 0,
    hours: int = 0,
    minutes: int = 0,
    seconds: int = 0,
    microseconds: int = 0,
)

Source from the content-addressed store, hash-verified

16
17
18def assert_diff(
19 diff: PreciseDiff,
20 years: int = 0,
21 months: int = 0,
22 days: int = 0,
23 hours: int = 0,
24 minutes: int = 0,
25 seconds: int = 0,
26 microseconds: int = 0,
27) -> None:
28 assert diff.years == years
29 assert diff.months == months
30 assert diff.days == days
31 assert diff.hours == hours
32 assert diff.minutes == minutes
33 assert diff.seconds == seconds
34 assert diff.microseconds == microseconds
35
36
37def test_precise_diff() -> None:

Callers 2

test_precise_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…