Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

hayata-yamamoto/python-fastapi-testing-with-moto-and-pynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example code of moto-based DynamoDB with FastAPI

Japanese version is here.

This repository represents how to develop FastAPI based API Service with mocking by moto.

  • main.py: Represents FastAPI and pynamodb-based model config
  • test_main.py: Represents test codes by moto and starlette testing client

If you check this, please type these on your console.

$ poetry install 
$ poetry run python -m unittest test_main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published