Repository URL to install this package:
|
Version:
0.2.2 ▾
|
PyPxTools
/
run_test.py
|
|---|
import nose
import os
import sys
import test
def run_nose(verbose=False):
nose_argv = sys.argv
nose_argv += ['--detailed-errors', '--exe']
if verbose:
nose_argv.append('-v')
initial_dir = os.getcwd()
my_package_file = os.path.abspath(test.__file__)
my_package_dir = os.path.dirname(my_package_file)
os.chdir(my_package_dir)
try:
nose.run(argv=nose_argv)
finally:
os.chdir(initial_dir)
if __name__ == '__main__':
run_nose()