fix: add starlette/httpx to dev deps, guard test_openai_compat imports #2
Reference in New Issue
Block a user
Delete Branch "devin/1777359479-fix-openai-compat-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the
test_openai_compat.pycollection error (ModuleNotFoundError: No module named starlette).Changes:
starlette>=0.36andhttpx>=0.27todevdependencies inpyproject.tomlpytest.importorskip()guards for bothstarletteandfastapiintest_openai_compat.py— test file is skipped gracefully when those packages are missing instead of crashing the entire test collectionResult: 340 tests pass (was 325 with test_openai_compat excluded).
Review & Testing Checklist for Human
pip install -e ".[dev]"and verify starlette/httpx are pulled inpytest tests/without--ignore— all 340 tests should passNotes
The 20 warnings in test output are FastAPI deprecation warnings about
on_event— pre-existing, not related to this change.