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

Function test_time

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

Source from the content-addressed store, hash-verified

251
252
253def test_time():
254 dt = pendulum.datetime(2016, 10, 20, 10, 40, 34, 123456)
255 t = dt.time()
256 assert isinstance(t, pendulum.Time)
257 assert_time(t, 10, 40, 34, 123456)
258
259
260@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

assert_timeFunction · 0.90
timeMethod · 0.80
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…