test: baseline test suite — 86 tests covering auth, CRUD, settings, chat, terraform, reports, terminal
This commit is contained in:
17
backend/tests/test_terminal.py
Normal file
17
backend/tests/test_terminal.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Tests for OCI CLI Terminal endpoints."""
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_terminal_history_empty(client, user_headers):
|
||||
r = await client.get("/api/terminal/history", headers=user_headers)
|
||||
assert r.status_code == 200
|
||||
assert isinstance(r.json(), list)
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_terminal_completions(client, user_headers):
|
||||
r = await client.get(
|
||||
"/api/terminal/completions", params={"prefix": "oci"}, headers=user_headers
|
||||
)
|
||||
assert r.status_code == 200
|
||||
Reference in New Issue
Block a user