mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-30 10:52:15 +00:00
``TestMemoryRoutes.test_search`` and ``test_stats`` assert the status code is in ``(200, 500)``. That list dates from the initial commit; #527 later made the memory routes raise 503 when the native ``openjarvis_rust`` extension is missing, so both tests now fail on any checkout where the extension has not been built — which is every contributor who has not run ``maturin develop``. The failure is spurious: these two tests only check that the routes are wired up, and their own comment ("May fail if SQLite not set up, that's ok") says an unavailable backend is tolerated. 503 is exactly that case, and it is already asserted deliberately in ``TestMemoryRustMissing`` directly below. Add 503 to the tolerated set via a named constant, so the reason is stated once rather than repeated as a bare literal. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>