mirror of
https://github.com/safishamsi/graphify.git
synced 2026-08-29 01:36:33 +00:00
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:
co-authored by
Claude Sonnet 4.6
parent
31a608f73e
commit
0cf596aa8a
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user