Spaces:
Sleeping
Sleeping
Download src/run_api_client_tests.py from AIMLApp/AISqlGeneratorApp: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/spaces/AIMLApp/AISqlGeneratorApp/resolve/main/src/run_api_client_tests.py
- Command line
-
hf download hf://spaces/AIMLApp/AISqlGeneratorApp/src/run_api_client_tests.py
-
curl -L -o run_api_client_tests.py https://huggingface.co/spaces/AIMLApp/AISqlGeneratorApp/resolve/main/src/run_api_client_tests.py
626 Bytes
| """ | |
| 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) | |