fix test_no_incremental_without_manifest false positive

pytest derives tmp_path from the test name, so the path contained
"incremental" and the bare-word assertion always failed; check for
the actual incremental-mode phrases instead

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Safi
2026-05-31 00:10:19 +01:00
co-authored by Claude Sonnet 4.6
parent 31a608f73e
commit 0cf596aa8a
+5 -1
View File
@@ -54,4 +54,8 @@ def test_no_incremental_without_manifest(tmp_path):
"""Without manifest.json, full scan message is shown (not incremental)."""
docs = _make_docs_corpus(tmp_path)
r = _run(["extract", str(docs)], tmp_path)
assert "incremental" not in r.stdout
# Check combined output doesn't contain incremental-mode phrasing.
# Use a phrase rather than a bare word to avoid matching the tmp_path,
# which pytest derives from the test name and contains "incremental".
assert "incremental update" not in r.stdout.lower()
assert "incremental scan" not in r.stdout.lower()