This repo contains the sample code for the article - Building And Testing FastAPI CRUD APIs With Pytest (Hands-On Tutorial)
This project explains how to Build and Test A CRUD Rest API using FastAPI, SQLite (via SQLAlchemy) and Pytest.
- Python (3.12)
This repo uses Poetry for dependency management.
Please install the dependencies using
$ poetry install
To run the Unit Tests, from the root of the repo run
pytest
If you have any questions about the project please raise an Issue on GitHub.