mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
The previous commit added a module-level `from sqlalchemy import event` to register SQLite speed PRAGMAs. But the test-system-utils workflow runs tests/test_utils_system.py with only `pip install pytest` (no SQLAlchemy), and pytest still imports conftest.py — so it broke with ModuleNotFoundError: No module named 'sqlalchemy'. Wrap the import + listener in try/except ImportError. Those jobs run no DB-backed test, so skipping the PRAGMA tuning there is harmless; the full backend job still gets it. Verified: tests/test_utils_system.py (41 passed) and the agent e2e roundtrip both pass; conftest now imports with just pytest + stdlib. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>