Passed
Pull Request — master (#321)
by Jaisen
02:58 queued 39s
created

elodie.tests.run_tests   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 13
dl 0
loc 20
rs 10
c 0
b 0
f 0
1
#!/usr/bin/env python
2
3
import nose
4
import os
5
import sys
6
import tempfile
7
8
if __name__ == "__main__":
9
   #os.environ['ELODIE_APPLICATION_DIRECTORY'] = tempfile.mkdtemp('-elodie-test')
10
   #os.environ['ELODIE_MAPQUEST_KEY'] = 'x8wQLqGhW7qK3sFpjYtVTogVtoMK0S8s'
11
   #print('Application Directory: {}'.format(os.environ['ELODIE_APPLICATION_DIRECTORY']))
12
    test_directory = os.path.dirname(os.path.abspath(__file__))
13
    test_argv = sys.argv
14
    test_argv.append('--verbosity=2')
15
    result = nose.run(argv=test_argv)
16
    if(result):
17
        sys.exit(0)
18
    else:
19
        sys.exit(1)
20