Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Latest commit

 

History

History
17 lines (14 loc) · 925 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 925 Bytes

microservice-python-template Coverage

A template for new python microservices

files to change

  • app.py (change microservice name and import endpoints from resources)
  • Pipfile and Pipfile.lock for new dependencies only
  • schemes.py for user endpoint requirements and responses
  • models/* for database models
  • resources/* for user and microservice endpoints
  • tests/* for unit tests
  • update microservice name and endpoints in tests/test_app.py
  • update microservice name in .github/workflows/

tests

When writing unit tests make sure to from mock.mock_loader import mock before importing anything from models or resources.