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

Function test_fluid_year_setter

tests/date/test_fluent_setters.py:8–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def test_fluid_year_setter():
9 d = pendulum.Date(2016, 10, 20)
10 new = d.set(year=1995)
11
12 assert_date(new, 1995, 10, 20)
13 assert new.year == 1995
14
15
16def test_fluid_month_setter():

Callers

nothing calls this directly

Calls 2

setMethod · 0.95
assert_dateFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…