Example #1
0
def main():
    print('running unit tests')
    # this doesn't allow coverage to follow the code and see what's been covered
    # for x in glob.glob(libdir + "/test/test_*.py"):
        # if subprocess.call(['python', x]):
        #     sys.exit(2)
        # subprocess.check_call(['python', x])
    from test.test_utils import main
    main()
    from test.test_cli import main
    main()
    from test.test_nagiosplugin import main
    main()
    from test.test_threshold import main
    main()
Example #2
0
# try:
#    from harisekhon.utils import *
# except ImportError, e:
#    print('module import failed: %s' % e)
#    sys.exit(4)

__author__ = 'Hari Sekhon'
__version__ = '0.1'


def main():
    print('running unit tests')
    # this doesn't allow coverage to follow the code and see what's been covered
    # for x in glob.glob(libdir + "/test/test_*.py"):
    # if subprocess.call(['python', x]):
    #     sys.exit(2)
    # subprocess.check_call(['python', x])
    # pylint: disable=redefined-outer-name,reimported
    from test.test_utils import main
    main()
    from test.test_cli import main
    main()
    from test.test_nagiosplugin import main
    main()
    from test.test_threshold import main
    main()


if __name__ == '__main__':
    main()
Example #3
0
# libdir = os.path.join(os.path.dirname(inspect.getfile(inspect.currentframe())), '..')
libdir = os.path.join(os.path.dirname(__file__), '..')
# sys.path.append(libdir)
# try:
#    from harisekhon.utils import *
# except ImportError, e:
#    print('module import failed: %s' % e)
#    sys.exit(4)

__author__ = 'Hari Sekhon'
__version__ = '0.1'

def main():
    print('running unit tests')
    # this doesn't allow coverage to follow the code and see what's been covered
    # for x in glob.glob(libdir + "/test/test_*.py"):
        # if subprocess.call(['python', x]):
        #     sys.exit(2)
        # subprocess.check_call(['python', x])
    from test.test_utils import main
    main()
    from test.test_cli import main
    main()
    from test.test_nagiosplugin import main
    main()
    from test.test_threshold import main
    main()

if __name__ == '__main__':
    main()