~doctormo/+junk/css-parser

« back to all changes in this revision

Viewing changes to tests/test_all.py

  • Committer: Martin Owens
  • Date: 2014-07-13 19:16:11 UTC
  • Revision ID: doctormo@gmail.com-20140713191611-48dkgp1dklvh8bq2
Inital addition of working css files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import glob
 
2
import unittest
 
3
 
 
4
if __name__ == '__main__':
 
5
    test_files = glob.glob('test_*.py')
 
6
    modules = [s[:-3] for s in test_files if 'compat' not in s]
 
7
    suites = [unittest.defaultTestLoader.loadTestsFromName(s) for s in modules]
 
8
    testSuite = unittest.TestSuite(suites)
 
9
    text_runner = unittest.TextTestRunner().run(testSuite)