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