Skip to content

Draft: Comprehensive Unit test for whole backend

Lakshy Yarlagadda requested to merge unit_test-API-routes-Schemas into develop
  • Clear Description: This MR introduces comprehensive unit tests for the backend by covering both data validation (Pydantic schemas) and business logic/API routes.

Scope Covered

  • Schema-level validation for all models in app/schemas/
  • API route testing for endpoints in app/api/v1/routes/
  • Core authentication and RBAC logic
  • Role-based access control and error handling

Outcome

  • Improved test coverage and reliability
  • Early rejection of invalid data at the schema layer
  • Verified API behavior across roles and edge cases
  • CI/CD pipeline passes with full pytest coverage
  • Checklist: A checklist of completed tasks, such as:
    • Code follows project API guidelines (if applicable).
    • Tests are included and passing.
    • Documentation is updated (if applicable).
    • Code adheres to project coding standards.
  • Related Issue(s): Link to any relevant issues using Closes #21 .

Merge request reports

Loading