This commit is contained in:
Your Name
2026-06-25 21:31:35 -06:00
parent 4703476c89
commit 99971b804d
7 changed files with 152 additions and 169 deletions

View File

@@ -203,7 +203,6 @@ class TestDisplayAPI:
resp = client.get("/api/display/status")
assert resp.status_code == 200
data = resp.get_json()
assert "simulate" in data
assert "resolution" in data
assert "pending_trigger" in data
@@ -318,12 +317,14 @@ class TestCORSAndErrors:
data = resp.get_json()
assert "error" in data
def test_url_encoded_form_not_accepted(self, client):
def test_url_encoded_form_accepted(self, client):
resp = client.put(
"/api/config/display/saturation",
data={"value": "0.5"},
)
assert resp.status_code == 400 or resp.status_code == 200
assert resp.status_code == 200
resp = client.get("/api/config/display")
assert resp.get_json()["saturation"] == 0.5
class TestGallery: