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

Function test_fluid_year_setter

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

Source from the content-addressed store, hash-verified

8
9
10def test_fluid_year_setter():
11 d = pendulum.now()
12 new = d.set(year=1995)
13 assert isinstance(new, datetime)
14 assert new.year == 1995
15 assert d.year != new.year
16
17
18def test_fluid_month_setter():

Callers

nothing calls this directly

Calls 2

nowMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…