This commit is contained in:
@@ -3,7 +3,8 @@ from collections.abc import Generator
|
||||
import pytest
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from app import API_BASE, app
|
||||
import settings
|
||||
from app import app
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@@ -13,6 +14,6 @@ def client() -> Generator[TestClient, None, None]:
|
||||
|
||||
|
||||
def test_get_status(client: TestClient) -> None:
|
||||
response = client.get(f"{API_BASE}/status")
|
||||
response = client.get(f"{settings.settings.api_base}/status")
|
||||
assert response.status_code == 200
|
||||
assert response.json() == {"status": "ok"}
|
||||
|
||||
Reference in New Issue
Block a user