18 lines
510 B
Python
18 lines
510 B
Python
"""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
|