feat: add user data endpoints tests and resolve validation edge cases#292
feat: add user data endpoints tests and resolve validation edge cases#292Sujata005 wants to merge 17 commits into
Conversation
|
@Sujata005 update the branch with the latest main changes, resolve conflicts and add issue number and demo |
|
@imDarshanGK, I have updated the branch with the latest changes from main, resolved the schema conflicts, and updated the PR description with the issue number and test evidence. Ready for review! Thank you. |
|
@Sujata005 update your branch with the latest changes from main and CI failing |
…/AI-dev-assistant into feat/user-data-testing
Hi @imDarshanGK,
I have successfully updated the branch with the latest changes from `main` directly via the GitHub UI sync.
Additionally, I ran the The PR is fully updated and ready for your review and workflow approval. Thank you! |
|
Hi @imDarshanGK, I have resolved the trailing newline ( Regarding the |
|
@Sujata005 update your branch with the latest main changes and CI failing |
|
@Sujata005 CI failing |









Description
This PR addresses the task assigned for GSSoC 2026 to add comprehensive backend tests exercising
GET,POST, andDELETEactions on the/user/historyand/user/favoritesendpoints using Starlette'sTestClient.Key adjustments implemented to ensure a successful, clean test pass:
FlexibleDictdata type with a PydanticBeforeValidator.user_idcontext fields withinuser_data.pyto seamlessly sync with the application schemas.class Config:architectures to modernized Pydantic v2/v3model_config = ConfigDict(from_attributes=True)rules to completely clear deprecation warning outputs.Related Issue
Fixes #201
Type of change
Checklist
mainpytest -vand all tests passfeat/fix/docs/test: short descriptionTest evidence