adding new sample py
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
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
This commit is contained in:
9
app/test_main.py
Normal file
9
app/test_main.py
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user