Skip to content
Permalink
Browse files

Followup b5794b2, fix calculation of acceptable limits

  • Loading branch information
nyalldawson committed Nov 8, 2015
1 parent 26dbb42 commit b6717b6175f5774176eb08a1b8882749de9decc2
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/python/test_qgssipcoverage.py
@@ -37,7 +37,7 @@
# DON'T RAISE THIS THRESHOLD!!!
# (changes which lower this threshold are welcomed though!)

ACCEPTABLE_MISSING_CLASSES = 198
ACCEPTABLE_MISSING_CLASSES = 196
ACCEPTABLE_MISSING_MEMBERS = 530


@@ -109,9 +109,9 @@ def testCoverage(self):

if __name__ == '__main__':
if "MISSING_SIP_CLASSES" in os.environ:
ACCEPTABLE_MISSING_CLASSES -= int(os.environ['MISSING_SIP_CLASSES'])
ACCEPTABLE_MISSING_CLASSES += int(os.environ['MISSING_SIP_CLASSES'])

if "MISSING_SIP_MEMBERS" in os.environ:
ACCEPTABLE_MISSING_MEMBERS -= int(os.environ['MISSING_SIP_MEMBERS'])
ACCEPTABLE_MISSING_MEMBERS += int(os.environ['MISSING_SIP_MEMBERS'])

unittest.main()

0 comments on commit b6717b6

Please sign in to comment.
You can’t perform that action at this time.