No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
354 | 354 | if (has_sep and pos < len_str and |
|
355 | 355 | timestr[pos:pos + 1] == self._TIME_SEP): |
|
356 | 356 | pos += 1 |
|
357 | + | elif pos > len_str: |
|
358 | + | raise ValueError( |
|
359 | + | "Must specify 2-digit hours, minutes and seconds") |
|
357 | 360 | ||
358 | 361 | if comp == 3: |
|
359 | 362 | # Fraction of a second |
41 | 41 | ||
42 | 42 | return out |
|
43 | 43 | ||
44 | + | ||
44 | 45 | FULL_TZOFFSETS = _generate_tzoffsets(False) |
|
45 | 46 | FULL_TZOFFSETS_AWARE = [x for x in FULL_TZOFFSETS if x[1]] |
|
46 | 47 | TZOFFSETS = _generate_tzoffsets(True) |
252 | 253 | ('20120411T03:30+1234567', ValueError), # Time zone too long |
|
253 | 254 | ('20120411T03:30-25:40', ValueError), # Time zone invalid |
|
254 | 255 | ('2012-1a', ValueError), # Invalid month |
|
256 | + | ('20120411T03:3', ValueError), # HH:M is invalid |
|
257 | + | ('20120411T03:30:1', ValueError), # HH:MM:S is invalid |
|
255 | 258 | ('20120411T03:30+00:60', ValueError), # Time zone invalid minutes |
|
256 | 259 | ('20120411T03:30+00:61', ValueError), # Time zone invalid minutes |
|
257 | 260 | ('20120411T033030.123456012:00', # No sign in time zone |
486 | 489 | ('1430:15', ValueError), # Inconsistent separator use |
|
487 | 490 | ('25', ValueError), # Invalid hours |
|
488 | 491 | ('25:15', ValueError), # Invalid hours |
|
492 | + | ('12:3', ValueError), # Minutes too short |
|
489 | 493 | ('14:60', ValueError), # Invalid minutes |
|
494 | + | ('14:59:4', ValueError), # Seconds too short |
|
490 | 495 | ('14:59:61', ValueError), # Invalid seconds |
|
491 | 496 | ('14:30:15.34468305:00', ValueError), # No sign in time zone |
|
492 | 497 | ('14:30:15+', ValueError), # Time zone too short |
Learn more Showing 32 files with coverage changes found.
dateutil/zoneinfo/rebuild.py
dateutil/test/test_easter.py
dateutil/test/test_imports.py
dateutil/test/test_isoparser.py
dateutil/zoneinfo/__init__.py
dateutil/tz/tz.py
dateutil/test/conftest.py
dateutil/tz/win.py
dateutil/utils.py
dateutil/tz/_factories.py
dateutil/rrule.py
dateutil/parser/_parser.py
dateutil/test/test_internals.py
dateutil/test/test_import_star.py
dateutil/parser/isoparser.py
dateutil/_common.py
dateutil/relativedelta.py
dateutil/parser/__init__.py
dateutil/__init__.py
dateutil/test/test_tz.py
dateutil/easter.py
dateutil/test/property/test_tz_prop.py
dateutil/test/test_relativedelta.py
dateutil/tz/_common.py
dateutil/test/test_utils.py
dateutil/test/test_parser.py
dateutil/test/property/test_isoparse_prop.py
dateutil/test/test_rrule.py
dateutil/tzwin.py
dateutil/test/_common.py
dateutil/tz/__init__.py
dateutil/test/property/test_parser_prop.py
Files | Coverage |
---|---|
dateutil | +<.01% 95.93% |
Project Totals (32 files) | 95.93% |
#1077
62cddee
fbeba98
2e998e4
c496b4f