main()   A
last analyzed

Complexity

Conditions 3

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12
Metric Value
cc 3
dl 0
loc 8
ccs 0
cts 0
cp 0
crap 12
rs 9.4286
1
#!/usr/bin/env python3
2 1
import os
3 1
import unittest
4
5
def main(): # pragma: no cover
6
    os.environ['PPP_LOGGER_CONFIG'] = 'example_config.json'
7
    testsuite = unittest.TestLoader().discover('tests/')
8
    results = unittest.TextTestRunner(verbosity=1).run(testsuite)
9
    if results.errors or results.failures:
10
        exit(1)
11
    else:
12
        exit(0)
13
14 1
if __name__ == '__main__':
15
    main()
16