test: pin nemotron fallback to nim path

This commit is contained in:
OoO
2026-05-13 21:28:33 +08:00
parent f5ceb79626
commit 48ee9f22e5

View File

@@ -1,5 +1,18 @@
from dataclasses import dataclass
import pytest
@pytest.fixture(autouse=True)
def _force_legacy_nim_first(monkeypatch):
"""Fallback tests cover the legacy NIM path, not live qwen3/Ollama routing."""
import services.nemoton_dispatcher_service as module
module._ALERT_CACHE.clear()
monkeypatch.setattr(module, "NEMOTRON_OLLAMA_FIRST", False)
yield
module._ALERT_CACHE.clear()
@dataclass
class FakeThreat: