Files
bracket/backend/tests/integration_tests/api/metrics_test.py
Erik Vroon 558c3163d1 Update pytest asyncio to 0.25.3 (#1110)
Updates the requirements on
[pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit
the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v0.21.2...v0.25.3)
2025-02-08 11:12:32 +00:00

11 lines
377 B
Python

import pytest
from bracket.utils.http import HTTPMethod
from tests.integration_tests.api.shared import send_request_raw
@pytest.mark.asyncio(loop_scope="session")
async def test_metrics_endpoint(startup_and_shutdown_uvicorn_server: None) -> None:
text_response = await send_request_raw(HTTPMethod.GET, "metrics")
assert "HELP bracket_response_time" in text_response