First application files and tests

This commit is contained in:
patsy 2026-09-17 00:51:39 +02:00
parent 0f7b7bd366
commit 865e28d3b6
3 changed files with 22 additions and 0 deletions

10
app/__init__.py Normal file
View file

@ -0,0 +1,10 @@
from flask import Flask
def create_app():
app = Flask(__name__)
@app.get("/health")
def health():
return "", 200
return app

1
requirements.txt Normal file
View file

@ -0,0 +1 @@
Flask==3.1.3

11
tests/test_health.py Normal file
View file

@ -0,0 +1,11 @@
from app import create_app
def test_health_returns_http_200():
app = create_app()
client = app.test_client()
response = client.get("/health")
assert response.status_code == 200