Showing 1 of 1 files from the diff.

@@ -3,7 +3,7 @@
Loading
3 3
4 4
from datetime import datetime, date
5 5
import unittest
6 -
from six import PY2
6 +
from six import PY2, assertRaisesRegex
7 7
8 8
from dateutil import tz
9 9
from dateutil.rrule import (
@@ -4614,6 +4614,14 @@
Loading
4614 4614
        self.assertEqual(list(newrr),
4615 4615
                             [datetime(1997, 1, 6)])
4616 4616
4617 +
    def testRaisesCorrectErrorForUnsupportedProperty(self):
4618 +
        rule = "X-ABC-MMSUBJ:19970902T090000"
4619 +
        assertRaisesRegex(self, ValueError, "unsupported property", rrulestr, rule, dtstart=datetime(1997, 9, 2, 9, 0))
4620 +
4621 +
    def testRaisesCorrectErrorIfDatetimeContainsColons(self):
4622 +
        rule = "FREQ=YEARLY;WKST=MO;UNTIL=2019-03-29T00:59:59"
4623 +
        self.assertRaises(ValueError, rrulestr, rule, dtstart=datetime(1997, 9, 2, 9, 0))
4624 +
4617 4625
4618 4626
@pytest.mark.rrule
4619 4627
@freeze_time(datetime(2018, 3, 6, 5, 36, tzinfo=tz.UTC))
@@ -4912,11 +4920,3 @@
Loading
4912 4920
4913 4921
        for repstr, wday in zip(with_n_reprs, with_n_wdays):
4914 4922
            self.assertEqual(repr(wday), repstr)
4915 -
4916 -
    def testRaisesCorrectErrorForUnsupportedProperty(self):
4917 -
        rule = "X-ABC-MMSUBJ:19970902T090000"
4918 -
        self.assertRaisesRegex(ValueError, "unsupported property", rrulestr, rule, dtstart=datetime(1997, 9, 2, 9, 0))
4919 -
4920 -
    def testRaisesCorrectErrorIfDatetimeContainsColons(self):
4921 -
        rule = "FREQ=YEARLY;WKST=MO;UNTIL=2019-03-29T00:59:59"
4922 -
        self.assertRaises(ValueError, rrulestr, rule, dtstart=datetime(1997, 9, 2, 9, 0))
Files Coverage
dateutil 95.99%
Project Totals (32 files) 95.99%
windows-latest:pypy2
Build #188261889 -
vyneinkfiwslkmee
TOXENV=py27
macos-latest:pypy2
Build #188261889 -
windows-latest:pypy3
Build #188261889 -
gy00uo5xy5yfyucn
TOXENV=py36
d1brlugn7h27ifpc
TOXENV=py35
5tst5d8nfvl1a6d8
TOXENV=py37
oodnhg8e8fdin68n
TOXENV=py37
2dc3ad9irra61hca
TOXENV=py38
ltkphry2m99gxop0
TOXENV=py38
2236.3
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
TOXENV=py
2236.4
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py
2236.2
TRAVIS_PYTHON_VERSION=3.4
TRAVIS_OS_NAME=linux
TOXENV=py
2236.1
TRAVIS_PYTHON_VERSION=2.7
TRAVIS_OS_NAME=linux
TOXENV=py
ubuntu-latest:pypy2
Build #188261889 -
2236.5
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py
2236.6
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py
ubuntu-latest:pypy3
Build #188261889 -
macos-latest:pypy3
Build #188261889 -
eg314ngnbwos48tg
TOXENV=py27
1
coverage:
2
  status:
3
    patch: false
4
    changes: false
5
    project:
6
      default:
7
        target: '80'
8

9
comment: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading