Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

test: realign two assertions with the declared theme enum and the depersonalized vault fixture

rubenluetke10-beepabf3afe92964
diff --git a/tests/unit/self_mod/test_schema_introspect.py b/tests/unit/self_mod/test_schema_introspect.py
index b6f1be352f..3fafd3e6c2 100644
--- a/tests/unit/self_mod/test_schema_introspect.py
+++ b/tests/unit/self_mod/test_schema_introspect.py
@@ -224,8 +224,11 @@ class TestDescribeField:
assert set(d["allowed_values"]) == {"en", "de", "es"}
def test_undeclared_extra_key_is_graceful(self) -> None:
- # ui.theme is an undeclared extra="allow" key — no schema type.
- assert describe_field("ui.theme")["value_type"] in ("str", "unknown")
+ # A key under an extra="allow" section that the schema does not declare
+ # has no type to report, and asking for one must not raise. The example
+ # is deliberately invented: any real key risks being declared later, as
+ # ui.theme was when the light theme turned it into a proper enum.
+ assert describe_field("ui.some_undeclared_key")["value_type"] in ("str", "unknown")
def test_unknown_path_is_graceful(self) -> None:
assert describe_field("totally.made.up.path")["value_type"] == "unknown"
diff --git a/tests/unit/ultrawiki/test_connectors.py b/tests/unit/ultrawiki/test_connectors.py
index d42659756a..bb04a849e4 100644
--- a/tests/unit/ultrawiki/test_connectors.py
+++ b/tests/unit/ultrawiki/test_connectors.py
@@ -100,7 +100,7 @@ class TestObsidianVault:
assert [item.external_id for item in items] == ["daily/idea.md", "note.md"]
note = next(item for item in items if item.external_id == "note.md")
assert note.title == "Meeting Notes"
- assert "Viktoria" in note.body
+ assert "Example Contact" in note.body
assert note.permalink == (root / "note.md").resolve().as_uri()
for item in items:
assert _ISO_UTC_RE.fullmatch(item.timestamp_utc)