mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-02 16:22:20 -07:00
improve MCP spec
This commit is contained in:
@@ -99,8 +99,9 @@ class TestDeviceFieldLock:
|
||||
json=payload,
|
||||
headers=auth_headers
|
||||
)
|
||||
assert resp.status_code == 400
|
||||
assert "fieldName is required" in resp.json.get("error", "")
|
||||
assert resp.status_code == 422
|
||||
# Pydantic error message format for missing fields
|
||||
assert "Missing required 'fieldName'" in resp.json.get("error", "")
|
||||
|
||||
def test_lock_field_invalid_field_name(self, client, test_mac, auth_headers):
|
||||
"""Lock endpoint rejects untracked fields."""
|
||||
|
||||
Reference in New Issue
Block a user