#!/usr/bin/env python3 """Run all tests and report results.""" import subprocess import sys result = subprocess.run( [sys.executable, "-m", "pytest", "tests/", "-v", "--tb=short"], cwd="/root/cma-management/backend", capture_output=True, text=True, ) print("STDOUT:") print(result.stdout) print("STDERR:") print(result.stderr) print(f"Return code: {result.returncode}")