AOSSIE-Org / AOSSIE-Org/PictoPy
Add unit test coverage for system health and core server endpoints
- Lingua principale
- Python
- Stelle
- 283
- Fork
- 679
- Merge medio
- 7g 2h
- PR unite (30g)
- 3
Descrizione
## Description
While exploring the backend codebase, I noticed that the `/health` endpoint (and other core system routes) lacks dedicated unit test coverage in the current `pytest` suite.
To ensure the stability of the server during the upcoming 2026 project revamp, I propose adding a new test suite specifically for these system-level endpoints.
## Proposed Changes
- Create `backend/tests/test_main.py` (or update existing system tests).
- Implement `TestGeneralAPI` class using the project's standard `pytest` class-based structure.
- Add `test_health_success` to verify status codes and response integrity.
- Ensure compatibility with existing fixtures (Mocking `app.state`).
## Tech Stack
- FastAPI `TestClient`
- Pytest
## I have:
- [x] Read the Code of Conduct.
- [x] Verified the test passes locally using `python -m pytest`.
- [x] Followed the existing coding style and import patterns.
I have the code ready for a PR. May I proceed with the submission?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.