File: js-beautify-test.py

package info (click to toggle)
node-js-beautify 1.7.5%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,400 kB
  • sloc: python: 10,222; sh: 848; makefile: 17
file content (11 lines) | stat: -rwxr-xr-x 271 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python

import sys
import unittest

def run_tests():
    suite = unittest.TestLoader().discover('.', pattern = "test*.py")
    return unittest.TextTestRunner(verbosity=2).run(suite)

if __name__ == "__main__":
    sys.exit(not run_tests().wasSuccessful())