Skip to content

Commit bf8731c

Browse files
author
Ivan
committed
feat: add demo public status fields to API schemas and update test dependencies
1 parent ad3ad40 commit bf8731c

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

meshchatx.rsm

0 Bytes
Binary file not shown.

tests/backend/api_json_contract_schemas.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,13 @@
196196
"seccomp_requested": {"type": "boolean"},
197197
"seccomp_auto_enabled": {"type": "boolean"},
198198
"seccomp_disabled_by_env": {"type": "boolean"},
199-
"seccomp_active": {"type": "boolean"},
199+
"seccomp_active": {"type": "boolean"},
200+
}
201+
202+
_DEMO_PUBLIC_STATUS_FIELDS: dict = {
203+
"demo_mode": {"type": "boolean"},
204+
"altcha_enabled": {"type": "boolean"},
205+
"auth_page_hint": {"type": ["string", "null"]},
200206
}
201207

202208
API_V1_STATUS_SCHEMA: dict = {
@@ -213,6 +219,7 @@
213219
"ui_ready": {"type": "boolean"},
214220
"error": {"type": "string"},
215221
**_SERVER_BIND_STATUS_SCHEMA,
222+
**_DEMO_PUBLIC_STATUS_FIELDS,
216223
},
217224
"additionalProperties": False,
218225
}
@@ -339,6 +346,7 @@
339346
"enum": ["http", "starting", "rns", "identity", "ready", "failed"],
340347
},
341348
"error": {"type": "string"},
349+
**_DEMO_PUBLIC_STATUS_FIELDS,
342350
},
343351
"additionalProperties": False,
344352
}

tests/backend/test_lxmf_local_self_oracle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
import pytest
1515

16+
pytest_plugins = ["tests.backend.test_lxmf_local_self_message"]
17+
1618
from meshchatx.meshchat import ReticulumMeshChat
1719
from meshchatx.src.backend import reticulum_pathfinding
1820
from tests.backend.test_lxmf_local_self_message import (

0 commit comments

Comments
 (0)