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

Function test_fluid_on

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

Source from the content-addressed store, hash-verified

78
79
80def test_fluid_on():
81 d = pendulum.datetime(2016, 7, 2, 0, 41, 20)
82 new = d.on(1995, 11, 9)
83 assert isinstance(new, datetime)
84 assert new.year == 1995
85 assert new.month == 11
86 assert new.day == 9
87 assert d.year == 2016
88 assert d.month == 7
89 assert d.day == 2
90
91
92def test_fluid_on_with_transition():

Callers

nothing calls this directly

Calls 2

onMethod · 0.80
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…