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

Function test_date

tests/datetime/test_getters.py:246–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244
245
246def test_date():
247 dt = pendulum.datetime(2016, 10, 20, 10, 40, 34, 123456)
248 d = dt.date()
249 assert isinstance(d, pendulum.Date)
250 assert_date(d, 2016, 10, 20)
251
252
253def test_time():

Callers

nothing calls this directly

Calls 3

assert_dateFunction · 0.90
dateMethod · 0.80
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…