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

Latest commit

 

History

History
15 lines (10 loc) · 512 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 512 Bytes

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