14 lines
329 B
Python
14 lines
329 B
Python
|
|
"""End-to-end smoke test: Flask app + Postgres testcontainer."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
import pytest
|
||
|
|
|
||
|
|
pytestmark = pytest.mark.integration
|
||
|
|
|
||
|
|
|
||
|
|
def test_healthz_returns_ok(client) -> None:
|
||
|
|
response = client.get("/healthz")
|
||
|
|
assert response.status_code == 200
|
||
|
|
assert response.get_json() == {"status": "ok"}
|