Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
10
def
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
18
def
test_fluid_month_setter():
Callers
nothing calls this directly
Calls
2
now
Method · 0.80
set
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…