Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
# explicitly via monkeypatch (see tests/test_update_check.py).
os.environ.setdefault("ENGRAPHIS_UPDATE_CHECK", "0")

# Owner machines may configure ENGRAPHIS_EXTRACTOR=llm (via ~/.engraphis/config.env),
# which would make every ingest-path test block on live LLM extraction calls. The unit
# suite is offline-inert by contract (AGENTS.md §1 "primary offline gate"); tests that
# exercise extraction opt back in explicitly via monkeypatch.setenv. setdefault keeps a
# real shell override working, matching how config.env itself defers to the environment.
os.environ.setdefault("ENGRAPHIS_EXTRACTOR", "none")
# Owner machines may configure ENGRAPHIS_EXTRACTOR=llm_structured (via ~/.engraphis/config.env
# or an exported shell variable), which would make every ingest-path test block on live LLM
# extraction calls — and under tests/conftest.py's DNS stub they hang instead of failing
# fast. The unit suite is offline-inert by contract (AGENTS.md §1 "primary offline gate");
# tests that exercise extraction opt back in explicitly via monkeypatch.setenv, so this is
# forced rather than setdefault: no shell export can leak a live LLM into the gate.
os.environ["ENGRAPHIS_EXTRACTOR"] = "none"

# The legacy scripts/test_*.py files are HTTP smoke tests (need a running server +
# httpx), not unit tests. Keep pytest focused on the tests/ suite.
Expand Down