Files
wehub-resource-sync 1443d3fdf9
Ruff Format Check / Ruff Format & Lint (push) Failing after 7m39s
Deploy VitePress site to Pages / build (push) Failing after 9m11s
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:32:26 +08:00

13 lines
328 B
Python

import sys
def test_import_yuxi_does_not_eagerly_import_knowledge(monkeypatch):
monkeypatch.setenv("OPENAI_API_KEY", "test-key")
sys.modules.pop("yuxi", None)
sys.modules.pop("yuxi.knowledge", None)
import yuxi
assert yuxi.get_version() == yuxi.__version__
assert "yuxi.knowledge" not in sys.modules