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.

style(desktop): format frontend recovery tests

rubenluetke10-beep0ff990911c2c
diff --git a/jarvis/ui/web/spa_build.py b/jarvis/ui/web/spa_build.py
index 8d811d5010..fd3f3d2893 100644
--- a/jarvis/ui/web/spa_build.py
+++ b/jarvis/ui/web/spa_build.py
@@ -116,9 +116,7 @@ def recover_conflicted_index(index_file: Path, dist_dir: Path) -> str | None:
assets exist. The unresolved file remains available for the merge owner.
"""
try:
- lines = index_file.read_text(encoding="utf-8", errors="replace").splitlines(
- keepends=True
- )
+ lines = index_file.read_text(encoding="utf-8", errors="replace").splitlines(keepends=True)
except OSError:
logging.getLogger(__name__).warning(
"Cannot inspect the conflicted frontend index at %s", index_file, exc_info=True
diff --git a/tests/unit/ui/web/test_spa_build_completeness.py b/tests/unit/ui/web/test_spa_build_completeness.py
index e1744bd5dd..bed156df7b 100644
--- a/tests/unit/ui/web/test_spa_build_completeness.py
+++ b/tests/unit/ui/web/test_spa_build_completeness.py
@@ -131,9 +131,7 @@ class TestBuildIsComplete:
assert "index-incoming.js" in recovered
assert "<<<<<<<" not in recovered
- def test_an_unrecoverable_conflict_keeps_the_holding_page(
- self, tmp_path: Path
- ) -> None:
+ def test_an_unrecoverable_conflict_keeps_the_holding_page(self, tmp_path: Path) -> None:
dist = _dist(tmp_path, assets=False)
(dist / "index.html").write_text(_CONFLICTED_INDEX, encoding="utf-8")
assert recover_conflicted_index(dist / "index.html", dist) is None