GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( e3a209...bb2a36 )
by Juan Jose
01:39
created

cov()   A

Complexity

Conditions 2

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
dl 0
loc 16
rs 9.4285
c 1
b 0
f 0
1
import os
2
import unittest
3
import coverage
4
5
6
COV = coverage.coverage(
7
    branch=True,
8
    include='route4me/*',
9
    omit=[
10
        'tests/*',
11
        'examples/*'
12
    ]
13
)
14
COV.start()
15
16
17
def cov():
18
    """Runs the unit tests with coverage."""
19
    tests = unittest.TestLoader().discover('tests')
20
    result = unittest.TextTestRunner(verbosity=2).run(tests)
21
    if result.wasSuccessful():
22
        COV.stop()
23
        COV.save()
24
        print('Coverage Summary:')
25
        COV.report()
26
        basedir = os.path.abspath(os.path.dirname(__file__))
27
        covdir = os.path.join(basedir, 'tmp/coverage')
28
        COV.html_report(directory=covdir)
29
        print('HTML version: file://%s/index.html' % covdir)
30
        COV.erase()
31
        return 0
32
    return 1
33
34
35
if __name__ == '__main__':
36
    cov()
37