main()   A
last analyzed

Complexity

Conditions 3

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12

Importance

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