dateutil / dateutil

@@ -4917,3 +4917,19 @@
Loading
4917 4917
        rule = "FREQ=YEARLY;WKST=MO;UNTIL=2019-03-29T00:59:59+01:00"
4918 4918
        with self.assertRaises(ValueError, msg="unsupported rule: " + rule):
4919 4919
            rrulestr(rule, dtstart=datetime(1997, 9, 2, 9, 0))
4920 +
4921 +
    def testUnsupportedRuleErrorWhenTimeFormatIsNotCorrect(self):
4922 +
        rule = "FREQ=YEARLY;WKST=MO;UNTIL=2019-03-29T00:59:59+01:00"
4923 +
        with pytest.raises(ValueError) as exception:
4924 +
            rrulestr(rule, dtstart=datetime(1997, 9, 2, 9, 0))
4925 +
        self.assertEqual("Unsupported rule: " + rule + ". Check if property is supported and time format does not have "
4926 +
                                                       "delimiters according to RFC5545",
4927 +
                         str(exception.value))
4928 +
4929 +
    def testUnsupportedRuleErrorWhenRuleNameIsNotCorrect(self):
4930 +
        rule = "XYZ:19970902T090000"
4931 +
        with pytest.raises(ValueError) as exception:
4932 +
            rrulestr(rule, dtstart=datetime(1997, 9, 2, 9, 0))
4933 +
        self.assertEqual("Unsupported rule: " + rule + ". Check if property is supported and time format does not have "
4934 +
                                                       "delimiters according to RFC5545",
4935 +
                         str(exception.value))

@@ -1697,7 +1697,9 @@
Loading
1697 1697
                                         value)
1698 1698
                    dtstart = dtvals[0]
1699 1699
                else:
1700 -
                    raise ValueError("unsupported rule: "+s)
1700 +
                    raise ValueError("Unsupported rule: " + s + ". Check if property is supported and time "
1701 +
                                                                "format does not have delimiters "
1702 +
                                                                "according to RFC5545")
1701 1703
            if (forceset or len(rrulevals) > 1 or rdatevals
1702 1704
                    or exrulevals or exdatevals):
1703 1705
                if not parser and (rdatevals or exdatevals):
Files Coverage
dateutil 95.32%
Project Totals (32 files) 95.32%
2230.2
TRAVIS_PYTHON_VERSION=3.4
TRAVIS_OS_NAME=linux
TOXENV=py
2230.1
TRAVIS_PYTHON_VERSION=2.7
TRAVIS_OS_NAME=linux
TOXENV=py
2230.3
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
TOXENV=py
2230.5
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py
ubuntu-latest:pypy2
Build #183713254 -
ubuntu-latest:pypy3
Build #183713254 -
windows-latest:pypy3
Build #183713254 -
macos-latest:pypy3
Build #183713254 -
windows-latest:pypy2
Build #183713254 -
macos-latest:pypy2
Build #183713254 -
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