Skip to content

Pytest-with-Eric/pytest-fastapi-crud-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pytest FastAPI CRUD Example

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.

Requirements

  • Python (3.12)

This repo uses Poetry for dependency management.

Please install the dependencies using

$ poetry install

How To Run the Unit Tests

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.

Releases

No releases published

Packages

No packages published

Languages