mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-03 11:13:17 +00:00
Move cli interface code in package
This commit is contained in:
9
app/tests/cli.py
Normal file
9
app/tests/cli.py
Normal file
@ -0,0 +1,9 @@
|
||||
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)
|
Reference in New Issue
Block a user