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

Function test_ym

tests/parsing/test_parsing.py:28–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def test_ym():
29 text = "2016-10"
30
31 parsed = parse(text)
32
33 assert parsed.year == 2016
34 assert parsed.month == 10
35 assert parsed.day == 1
36 assert parsed.hour == 0
37 assert parsed.minute == 0
38 assert parsed.second == 0
39 assert parsed.microsecond == 0
40 assert parsed.tzinfo is None
41
42
43def test_ymd():

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…