slixmpp/tests/test_overall.py

23 lines
493 B
Python
Raw Permalink Normal View History

import os
import re
import sys
import unittest
import compileall
class TestOverall(unittest.TestCase):
"""
Test overall package health by compiling and checking
code style.
"""
def testModules(self):
"""Testing all modules by compiling them"""
2014-07-17 12:19:04 +00:00
src = '.%sslixmpp' % os.sep
rx = re.compile('/[.]svn|.*26.*')
2018-10-08 21:25:23 +00:00
self.assertTrue(compileall.compile_dir(src, rx=rx, quiet=True))
suite = unittest.TestLoader().loadTestsFromTestCase(TestOverall)