Files
OpenJarvis/tests/conftest.py
T
Jon Saad-FalconandClaude Opus 4.6 301e9cd2d4 Implement OpenJarvis v1.0 — all five pillars, SDK, benchmarks, Docker
Complete implementation across six development phases (v0.1 through v1.0):

- Core: Registry system, config, event bus, types (Phase 0)
- Intelligence + Inference: Model routing, Ollama/vLLM/llama.cpp/Cloud engines (Phase 1)
- Memory: SQLite/FAISS/ColBERT/BM25/Hybrid backends, document ingest, context injection (Phase 2)
- Agents: Simple/Orchestrator/Custom/OpenClaw agents, tool system (Phase 3)
- Learning: HeuristicRouter, reward functions, GRPO stub, telemetry aggregation (Phase 4)
- SDK: Jarvis class, OpenClaw protocol/transport, benchmarks, Docker deployment (Phase 5)

520 tests passing, 8 skipped (optional deps). Ruff lint clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 00:52:48 +00:00

30 lines
729 B
Python

"""Shared fixtures — clear all registries and the event bus between tests."""
from __future__ import annotations
import pytest
from openjarvis.core.events import reset_event_bus
from openjarvis.core.registry import (
AgentRegistry,
BenchmarkRegistry,
EngineRegistry,
MemoryRegistry,
ModelRegistry,
RouterPolicyRegistry,
ToolRegistry,
)
@pytest.fixture(autouse=True)
def _clean_registries() -> None:
"""Ensure each test starts with empty registries and a fresh event bus."""
ModelRegistry.clear()
EngineRegistry.clear()
MemoryRegistry.clear()
AgentRegistry.clear()
ToolRegistry.clear()
RouterPolicyRegistry.clear()
BenchmarkRegistry.clear()
reset_event_bus()