Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1005 Bytes

File metadata and controls

46 lines (32 loc) · 1005 Bytes

API Testing Pytest Demo

Small API testing project built around a fictional case management service.

The point of this repo is to show a practical API QA setup: status code checks, JSON response validation, negative tests, duplicate handling, date validation, and a basic report endpoint.

What is included

  • FastAPI demo service
  • Pytest API tests
  • Test fixtures and data reset between tests
  • Positive and negative test cases
  • GitHub Actions test workflow

Main API areas

  • Health check
  • Client creation and search
  • Appointment booking
  • Double-booking validation
  • Report summary validation

Run locally

python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -r requirements.txt
pytest

To run the demo API manually:

uvicorn app.main:app --reload

Then open:

http://127.0.0.1:8000/docs

Notes

This is not a production backend. It is a compact test target for API testing practice and portfolio review.