import pytest @pytest.fixture(scope="module") def client(wire_domain): wire_domain("cacu") from webapi import create_app app = create_app() app.config.update(TESTING=True) with app.test_client() as client: yield client def test_health(client): response = client.get("/health") assert response.status_code == 200 assert response.get_json() == {"status": "ok"}