mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-26 11:24:18 +00:00
10 lines
267 B
Python
10 lines
267 B
Python
|
from unittest import TestLoader, TextTestRunner
|
||
|
from unittest.suite import TestSuite
|
||
|
from . import bp
|
||
|
|
||
|
@bp.cli.command('run')
|
||
|
def run_test():
|
||
|
''' Run unit tests. '''
|
||
|
tests: TestSuite = TestLoader().discover('tests')
|
||
|
TextTestRunner(verbosity=2).run(tests)
|