""" Test runner for API Client unit tests """ import sys import os # Add the current directory to path so we can import api_client sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) import pytest if __name__ == "__main__": # Run the tests with verbose output and coverage exit_code = pytest.main([ "test_api_client.py", "-v", # Verbose output "--tb=short", # Short traceback format "--durations=10", # Show 10 slowest tests "-x", # Stop on first failure ]) print(f"\nTest execution completed with exit code: {exit_code}") sys.exit(exit_code)