update refactoring and add new features
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
sys.path.insert(0, r'C:\Forgejo\Medios-Macina')
|
||||
from tests.test_cli_parsing import *
|
||||
|
||||
failed = 0
|
||||
tests = [(n, o) for n, o in globals().items() if n.startswith('test_') and callable(o)]
|
||||
for n, o in tests:
|
||||
try:
|
||||
o()
|
||||
print(n, 'OK')
|
||||
except Exception as e:
|
||||
print(n, 'FAIL', e)
|
||||
traceback.print_exc()
|
||||
failed += 1
|
||||
|
||||
if failed:
|
||||
sys.exit(1)
|
||||
print('All tests passed')
|
||||
Reference in New Issue
Block a user