Fastapi, Fastapi Tutorials, Scallable Fastapi, Scalable Web App, Python Web App.
the test_main.py file: import pytest from starlette.testclient import TestClient from backend_api.main import app @pytest.fixture def client(): return TestClient(app) def test_base_route(client): """ GIVEN WHEN health check endpoint is called with GET method THEN response with status 200 and body