HTTP tests against a running controller (make test-api HOST=ip). They snapshot every collection through /db and restore it afterwards. v1 behaviour v2 does not have yet is marked as a strict xfail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
524 B
Python
21 lines
524 B
Python
"""led-tool: configure drivers over USB serial (v1 controllers/led_tool.py)."""
|
|
|
|
from helpers import missing
|
|
|
|
# Every test here fails on v2
|
|
pytestmark = missing("led-tool (USB serial)")
|
|
|
|
|
|
def test_ports(c):
|
|
resp = c.get("/led-tool/ports")
|
|
assert resp.status_code == 200
|
|
assert isinstance(resp.json()["ports"], list)
|
|
|
|
|
|
def test_settings_requires_port(c):
|
|
assert c.get("/led-tool/settings").status_code == 400
|
|
|
|
|
|
def test_reset_requires_port(c):
|
|
assert c.post("/led-tool/reset", json={}).status_code == 400
|