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

Function test_fluid_at_partial

tests/datetime/test_fluent_setters.py:120–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118
119
120def test_fluid_at_partial():
121 d = pendulum.datetime(2016, 7, 2, 0, 41, 20)
122 new = d.at(10)
123
124 assert_datetime(new, 2016, 7, 2, 10, 0, 0, 0)
125
126 new = d.at(10, 30)
127
128 assert_datetime(new, 2016, 7, 2, 10, 30, 0, 0)
129
130 new = d.at(10, 30, 45)
131
132 assert_datetime(new, 2016, 7, 2, 10, 30, 45, 0)
133
134
135def test_fluid_at_with_transition():

Callers

nothing calls this directly

Calls 3

assert_datetimeFunction · 0.90
atMethod · 0.80
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…