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.
This pull request introduces several improvements to serialization, dependency injection, and testing infrastructure, primarily focused on the FastAPI app and its store/checkpointer services. The most significant changes are the consistent use of
serialize_as_any=Truefor model serialization, refactoring test and fixture setup to use dependency injection (InjectQ), and the addition of minimal and isolated test files to validate OpenAPI schema and endpoint behavior.Serialization improvements:
model_dumpandmodel_dump_jsoninagentflow_cli/src/app/routers/graph/services/graph_service.py,agentflow_cli/src/app/routers/checkpointer/services/checkpointer_service.py, andagentflow_cli/src/app/utils/parse_output.pyto includeserialize_as_any=True, ensuring subclass fields are preserved during serialization. [1] [2] [3] [4] [5] [6] [7]Testing and fixture refactoring:
tests/integration_tests/store/conftest.pyto use dependency injection (InjectQ) for setting up FastAPI test apps, replaced patching of services with DI, and added fixtures for unauthenticated app/client setups to improve test isolation and reliability. [1] [2] [3] [4]Addition of minimal and isolated tests:
test_minimal.py,test_pytest.py,test_super_minimal.py) to validate FastAPI endpoint registration, OpenAPI schema, and store router behavior in isolation, using mocks and DI. [1] [2] [3]Test and validation updates:
Build and coverage commands:
Makefileto ensurepytest-covis installed before running coverage tests and updated the coverage target to use the correct package name.