Skip to content

Szujo-Janos/api-testing-pytest-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Pytest API testing demo with FastAPI endpoints, validation checks, negative tests, duplicate handling, and report summary testing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages