hello-api/tests/test_app.py
devops 36a504077d
All checks were successful
Tests / Test passed: 2
hello-api-mb/pipeline/head This commit looks good
hello-api: platform se scaffold
2026-09-16 16:26:15 +00:00

12 lines
229 B
Python

from app.main import app
def test_health():
c = app.test_client()
assert c.get("/health").status_code == 200
def test_version():
c = app.test_client()
assert c.get("/version").get_json()["app"] == "hello-api"