Spaces:
Running
Running
Integration Tests
This directory contains integration tests for the PromptAid Vision backend. Integration tests verify that different components work together correctly.
π§ͺ Test Categories
API Integration Tests
test_core.py- Core application functionality, database connections, and API endpointstest_admin_endpoints.py- Admin authentication and model management endpointstest_schema_validation.py- Schema validation and integration teststest_explore_page.py- Frontend explore page functionality teststest_upload_flow.py- Complete upload workflow testingtest_openai_integration.py- OpenAI API integration tests
π Running Integration Tests
Run All Integration Tests
cd py_backend
python tests/integration_tests/run_integration_tests.py
Run Individual Tests
cd py_backend
python tests/integration_tests/test_core.py
python tests/integration_tests/test_admin_endpoints.py
π Test Requirements
- Backend server must be running
- Database must be accessible
- Environment variables must be configured
- External API keys (if testing external integrations)
π§ Test Environment
Integration tests require a running backend environment to test actual component interactions.