Skip to content

test: Add backend unit testsΒ #85

@namann5

Description

@namann5

πŸ§ͺ Feature Request β€” Testing Infrastructure

Description

The project currently has zero test files in the entire codebase. The CI pipeline
(ci.yml) only runs ruff and mypy for the backend β€” there is no pytest step.
This means broken logic can be merged without any automated safety net.

Current CI (backend jobs)

  • βœ… Ruff linting
  • βœ… Ruff format check
  • βœ… mypy type checking
  • ❌ No unit/integration tests

What's Missing

  • No tests/ directory in backend/
  • No pytest or pytest-asyncio in dev dependencies
  • No test step in .github/workflows/ci.yml

Suggested Fix

1. Add test dependencies to pyproject.toml:

[tool.uv.dev-dependencies]
pytest = ">=8.0"
pytest-asyncio = ">=0.23"
httpx = ">=0.27"   # for FastAPI TestClient

Metadata

Metadata

Assignees

Labels

gssoc2026GSSoC 2026 contribution

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions