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

cryptic-game/microservice-python-template

Repository files navigation

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.