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

Function test_fluid_at

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

Source from the content-addressed store, hash-verified

104
105
106def test_fluid_at():
107 d = pendulum.datetime(2016, 7, 2, 0, 41, 20)
108 new = d.at(5, 32, 49, 123456)
109 assert isinstance(new, datetime)
110 assert new.hour == 5
111 assert new.minute == 32
112 assert new.second == 49
113 assert new.microsecond == 123456
114 assert d.hour == 0
115 assert d.minute == 41
116 assert d.second == 20
117 assert d.microsecond == 0
118
119
120def test_fluid_at_partial():

Callers

nothing calls this directly

Calls 2

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…