#!/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')