You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
474 B
18 lines
474 B
import pytest
|
|
import requests
|
|
from typing import Dict, Any
|
|
from .conftest import BASE_URL
|
|
|
|
|
|
class TestHealthCheck:
|
|
"""health check endpoint"""
|
|
|
|
def test_health_endpoint(self, api_client):
|
|
"""For /health endpoint"""
|
|
response = api_client.get(f"{BASE_URL}/health")
|
|
assert response.status_code == 200
|
|
data = response.json()
|
|
assert "status" in data
|
|
assert data["status"] == "healthy"
|
|
assert "model_loaded" in data
|