This repository has been archived on 2026-02-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
breakpilot-pwa/backend/api/tests/registry.py
Benjamin Admin 21a844cb8a fix: Restore all files lost during destructive rebase
A previous `git pull --rebase origin main` dropped 177 local commits,
losing 3400+ files across admin-v2, backend, studio-v2, website,
klausur-service, and many other services. The partial restore attempt
(660295e2) only recovered some files.

This commit restores all missing files from pre-rebase ref 98933f5e
while preserving post-rebase additions (night-scheduler, night-mode UI,
NightModeWidget dashboard integration).

Restored features include:
- AI Module Sidebar (FAB), OCR Labeling, OCR Compare
- GPU Dashboard, RAG Pipeline, Magic Help
- Klausur-Korrektur (8 files), Abitur-Archiv (5+ files)
- Companion, Zeugnisse-Crawler, Screen Flow
- Full backend, studio-v2, website, klausur-service
- All compliance SDKs, agent-core, voice-service
- CI/CD configs, documentation, scripts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 09:51:32 +01:00

85 lines
2.2 KiB
Python

"""
Test Registry API - Legacy Compatibility Wrapper
This file provides backward compatibility for code importing from registry.py.
All functionality has been moved to the registry/ module.
For new code, import directly from:
from api.tests.registry import router
from api.tests.registry.config import PROJECT_ROOT
etc.
"""
# Re-export router for backward compatibility
from .registry import router
# Re-export all public APIs from the modular structure
from .registry import (
# Config
PROJECT_ROOT,
RUN_MODE,
DATA_DIR,
RESULTS_FILE,
check_go_available,
check_pytest_available,
get_go_version,
get_pytest_version,
load_persisted_results,
save_persisted_results,
migrate_json_to_postgres,
is_postgres_available,
get_persisted_results,
get_test_runs,
get_current_runs,
get_running_tests,
# API Models
TestRunRequest,
TestRunResponse,
RegistryResponse,
BacklogStatusUpdate,
BacklogPriorityUpdate,
FixAttempt,
ManualBacklogEntry,
CIResultRequest,
# Discovery
discover_go_tests,
discover_python_tests,
discover_bqas_tests,
build_service_info,
# Executors
run_go_tests,
run_python_tests,
run_bqas_tests,
run_jest_tests,
run_playwright_tests,
run_tests_in_container,
execute_test_run,
# Services
extract_go_error,
classify_go_error,
suggest_go_fix,
extract_pytest_error,
classify_pytest_error,
suggest_pytest_fix,
)
# Legacy aliases for in-memory storage access
_test_runs = get_test_runs()
_current_runs = get_current_runs()
_running_tests = get_running_tests()
_persisted_results = get_persisted_results()
_use_postgres = is_postgres_available()
# Legacy function aliases (for compatibility with old function names)
_extract_go_error = extract_go_error
_classify_go_error = classify_go_error
_suggest_go_fix = suggest_go_fix
_extract_pytest_error = extract_pytest_error
_classify_pytest_error = classify_pytest_error
_suggest_pytest_fix = suggest_pytest_fix
_check_go_available = check_go_available
_check_pytest_available = check_pytest_available
_get_go_version = get_go_version
_get_pytest_version = get_pytest_version
_check_postgres_available = is_postgres_available