module documentation

Undocumented

Class ParserTest Undocumented
Class TestFormat Undocumented
Class TestInputTypes Undocumented
Class TestOutOfBounds Undocumented
Class TestParseUnimplementedCases Undocumented
Class TestTzinfoInputTypes Undocumented
Class TestTZVar Undocumented
Function fuzzy Fixture to pass fuzzy=True or fuzzy=False to parse
Function test_decimal_error Undocumented
Function test_parse_dayfirst Undocumented
Function test_parse_ignoretz Undocumented
Function test_parse_tzinfos_fold Undocumented
Function test_parse_with_tzoffset Undocumented
Function test_parse_yearfirst Undocumented
Function test_parser Undocumented
Function test_parser_default Undocumented
Function test_parsererror_repr Undocumented
Function test_rounding_floatlike_strings Undocumented
Constant IS_WIN Undocumented
Constant PARSER_DEFAULT_TEST_CASES Undocumented
Constant PARSER_TEST_CASES Undocumented
Constant PLATFORM_HAS_DASH_D Undocumented
Variable _brsttz Undocumented
@pytest.fixture(params=[True, False])
def fuzzy(request): (source)

Fixture to pass fuzzy=True or fuzzy=False to parse

@pytest.mark.parametrize('value', ['1: test', 'Nan'])
def test_decimal_error(value): (source)

Undocumented

@pytest.mark.parametrize('sep', ['-', '.', '/', ' '])
def test_parse_dayfirst(sep): (source)

Undocumented

@pytest.mark.parametrize('dstr,expected', [('Thu Sep 25 10:36:28 BRST 2003', datetime(2003, 9, 25, 10, 36, 28)), ('1996.07.10 AD at 15:08:56 PDT', datetime(1996, 7, 10, 15, 8, 56)), ('Tuesday, April 12, 1952 AD 3:30:42pm PST', datetime(1952, 4, 12, 15, 30, 42)), ('November 5, 1994, 8:15:30 am EST', datetime(1994, 11, 5, 8, 15, 30)), ('1994-11-05T08:15:30-05:00', datetime(1994, 11, 5, 8, 15, 30)), ('1994-11-05T08:15:30Z', datetime(1994, 11, 5, 8, 15, 30)), ('1976-07-04T00:01:02Z', datetime(1976, 7, 4, 0, 1, 2)), ('1986-07-05T08:15:30z', datetime(1986, 7, 5, 8, 15, 30)), ('Tue Apr 4 00:22:12 PDT 1995', datetime(1995, 4, 4, 0, 22, 12))])
def test_parse_ignoretz(dstr, expected): (source)

Undocumented

def test_parse_tzinfos_fold(): (source)

Undocumented

@pytest.mark.parametrize('dstr,expected', [('20030925T104941-0300', datetime(2003, 9, 25, 10, 49, 41, tzinfo=_brsttz)), ('Thu, 25 Sep 2003 10:49:41 -0300', datetime(2003, 9, 25, 10, 49, 41, tzinfo=_brsttz)), ('2003-09-25T10:49:41.5-03:00', datetime(2003, 9, 25, 10, 49, 41, 500000, tzinfo=_brsttz)), ('2003-09-25T10:49:41-03:00', datetime(2003, 9, 25, 10, 49, 41, tzinfo=_brsttz)), ('20030925T104941.5-0300', datetime(2003, 9, 25, 10, 49, 41, 500000, tzinfo=_brsttz))])
def test_parse_with_tzoffset(dstr, expected): (source)

Undocumented

@pytest.mark.parametrize('sep', ['-', '.', '/', ' '])
def test_parse_yearfirst(sep): (source)

Undocumented

@pytest.mark.parametrize('parsable_text,expected_datetime,assertion_message', PARSER_TEST_CASES)
def test_parser(parsable_text, expected_datetime, assertion_message): (source)

Undocumented

@pytest.mark.parametrize('parsable_text,expected_datetime,assertion_message', PARSER_DEFAULT_TEST_CASES)
def test_parser_default(parsable_text, expected_datetime, assertion_message): (source)

Undocumented

def test_parsererror_repr(): (source)

Undocumented

@pytest.mark.parametrize('dtstr,dt', [('5.6h', datetime(2003, 9, 25, 5, 36)), ('5.6m', datetime(2003, 9, 25, 0, 5, 36)), ('5.6s', datetime(2003, 9, 25, 0, 0, 5, 600000))])
def test_rounding_floatlike_strings(dtstr, dt): (source)

Undocumented

IS_WIN = (source)

Undocumented

Value
sys.platform.startswith('win')
PARSER_DEFAULT_TEST_CASES = (source)

Undocumented

Value
[('Thu Sep 25 10:36:28',
  datetime(2003, 9, 25, 10, 36, 28),
  'date command format strip'),
 ('Thu Sep 10:36:28',
  datetime(2003, 9, 25, 10, 36, 28),
  'date command format strip'),
 ('Thu 10:36:28', datetime(2003, 9, 25, 10, 36, 28), 'date command format strip'
...
PARSER_TEST_CASES = (source)

Undocumented

Value
[('Thu Sep 25 10:36:28 2003',
  datetime(2003, 9, 25, 10, 36, 28),
  'date command format strip'),
 ('Thu Sep 25 2003', datetime(2003, 9, 25), 'date command format strip'),
 ('2003-09-25T10:49:41', datetime(2003, 9, 25, 10, 49, 41), 'iso format strip'),
 ('2003-09-25T10:49', datetime(2003, 9, 25, 10, 49), 'iso format strip'),
 ('2003-09-25T10', datetime(2003, 9, 25, 10), 'iso format strip'),
...
PLATFORM_HAS_DASH_D: bool = (source)

Undocumented

Value
True
_brsttz = (source)

Undocumented