Files
sonar-test-pyt2/app/test_main.py
andrej 5d4d90c17c
All checks were successful
Integration Test / Platform Conformance (pull_request) Successful in 4s
Integration Test / Unit Tests + Container Smoke (workflow_dispatch) All checks passed
Build and Push to ACR / Build and Push (push) Successful in 46s
Integration Test / Unit Tests + Container Smoke (pull_request) Successful in 42s
SonarQube Analysis / Build, Test & Analyse (pull_request) Successful in 3m49s
adding new sample py
2026-05-07 16:39:15 +00:00

9 lines
193 B
Python

from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health():
response = client.get("/health")
assert response.status_code == 200