Make it FastAPI app
Some checks failed
ci/woodpecker/tag/test Pipeline failed
ci/woodpecker/tag/build unknown status

This commit is contained in:
phil 2025-06-27 00:48:49 +02:00
parent a017fd28a9
commit eb1d04dbc3
5 changed files with 136 additions and 6 deletions

View file

@ -1,6 +1,15 @@
from fastapi.testclient import TestClient
from test_woodpecker.main import app
client = TestClient(app)
def test_read_main():
response = client.get("/")
assert response.status_code == 200
assert response.json()["msg"] == "Hello World"
def test_ok():
assert True
def no_test_fail():
assert False