test: baseline test suite — 86 tests covering auth, CRUD, settings, chat, terraform, reports, terminal
This commit is contained in:
17
backend/tests/test_reports.py
Normal file
17
backend/tests/test_reports.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Tests for reports and CIS engine endpoints."""
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_list_reports_empty(client, user_headers):
|
||||
r = await client.get("/api/reports", headers=user_headers)
|
||||
assert r.status_code == 200
|
||||
assert isinstance(r.json(), list)
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_cis_engine_version(client, admin_headers):
|
||||
r = await client.get("/api/cis-engine/version", headers=admin_headers)
|
||||
assert r.status_code == 200
|
||||
body = r.json()
|
||||
assert "version" in body
|
||||
Reference in New Issue
Block a user