10 lines
291 B
Python
10 lines
291 B
Python
|
|
"""API модуля алертов без БД."""
|
||
|
|
|
||
|
|
from fastapi.testclient import TestClient
|
||
|
|
|
||
|
|
|
||
|
|
def test_alerts_list_no_db(client: TestClient) -> None:
|
||
|
|
r = client.get("/api/v1/modules/alerts/")
|
||
|
|
assert r.status_code == 200
|
||
|
|
assert r.json() == {"items": [], "database": "disabled"}
|