feat: sequences v2, driver frame sync and submodule updates
- Sequences v2, bridges and sim-controller changes from the working tree. - Records the led-driver, led-tool and led-simulator commits above. - Includes dmx-driver/ and graphify-out/. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3f8f67823b
commit
50ca46fee6
657 files changed
+15818
-1107
No files matched your search
@@ -67,6 +67,13 @@ def test_resolve_brightness(c, group):
|
||||
assert resp.json()["values"] == {MAC: 64}
|
||||
|
||||
|
||||
def test_group_max_brightness_caps(c, group):
|
||||
assert c.get(f"/groups/{group}").json()["max_brightness"] == 255
|
||||
assert c.put(f"/groups/{group}", json={"max_brightness": 20}).status_code == 200
|
||||
resp = c.post("/devices/resolve-brightness", json={"macs": [MAC], "zone_brightness": 255})
|
||||
assert resp.json()["values"] == {MAC: 20}
|
||||
|
||||
|
||||
def test_resolve_brightness_needs_list(c):
|
||||
assert c.post("/devices/resolve-brightness", json={"macs": "x"}).status_code == 400
|
||||
|
||||
|
||||
@@ -48,12 +48,6 @@ def test_ota_manifest(c):
|
||||
assert "blink.py" in names
|
||||
|
||||
|
||||
def test_send_rejects_builtin(c):
|
||||
resp = c.post("/patterns/off/send", json={})
|
||||
assert resp.status_code == 400
|
||||
assert "error" in resp.json()
|
||||
|
||||
|
||||
def test_upload_rejects_builtin(c):
|
||||
resp = c.post("/patterns/upload", json={"name": "on.py", "code": "class On:\n def run(self, p):\n yield\n"})
|
||||
assert resp.status_code == 400
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import hashlib
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -25,14 +24,6 @@ def test_settings_editor_page(c):
|
||||
assert "espnow-send" in resp.text
|
||||
|
||||
|
||||
def test_driver_files(c):
|
||||
files = c.get("/static/driver/manifest.json").json()["files"]
|
||||
assert any(f["path"] == "main.py" for f in files)
|
||||
for f in (files[0], files[-1]):
|
||||
body = c.get(f"/static/driver/{f['path']}").content
|
||||
assert hashlib.sha256(body).hexdigest() == f["sha"]
|
||||
|
||||
|
||||
def test_status_reset_reason(c):
|
||||
assert c.get("/status").json()["reset_reason"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user