fix: Integration tests, mypy errors, and deprecation warnings #628
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Parallel fixes across test infrastructure and type safety without touching GAM or integration_v2 files.
Changes
✅ Integration Test Fixes
test_a2a_response_message_fields.py:AdCPRequestHandlerfromsrc.a2a_server.adcp_a2a_serverMagicMock/patchfromunittest.mock✅ Type Safety (mypy)
mypy.ini(line 89)context_manager.py: Fix return types, variable shadowing (6 fixes)oauth_retry.py: Add exception type hints (1 fix)schema_helpers.py: Remove invalid status parameter (1 fix)config_loader.py: Fixget_secret()return type (1 fix)webhook_delivery.py: SQLAlchemy datetime assignments (2 fixes)strategy.py: Add runtime type checks (1 fix)main.py: Fix variable shadowing, None comparisons (3 fixes)✅ Deprecation Fixes
schema_validation.pyfromclass ConfigtoConfigDictPydanticDeprecatedSince20warnings✅ Runtime Fixes
webhook_delivery_service.py_shutdownmethoddelivery_simulator.py_shutdownmethodValueError: I/O operation on closed file✅ Schema Updates
Testing Strategy
Used 5 parallel debugger agents to:
Notes
./run_all_tests.sh ci)test_product_deletion.py::test_database_fallback_super_admin_checkis missing@pytest.mark.requires_dbmarker - not introduced by this PRTest Results
🤖 Generated with Claude Code