mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
16 lines
No EOL
418 B
Python
Executable file
16 lines
No EOL
418 B
Python
Executable file
#!/usr/bin/env python
|
|
import unittest
|
|
import os
|
|
import re
|
|
|
|
def suite():
|
|
s = unittest.TestSuite()
|
|
# get the suite() of every module in this directory begining with test_
|
|
for fname in os.listdir('.'):
|
|
match = re.match(r'(test_\S+)\.py$', fname)
|
|
if match:
|
|
s.addTest(__import__(match.group(1)).suite())
|
|
return s
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main(defaultTest='suite') |