test: update watch ignore loader mock

This commit is contained in:
mzt006
2026-07-18 12:05:00 +01:00
committed by safishamsi
parent f17e2c5638
commit 704e687532
+2 -2
View File
@@ -945,9 +945,9 @@ def test_watch_loads_graphifyignore_once(tmp_path, monkeypatch):
calls = {"n": 0}
real_loader = detect_mod._load_graphifyignore
def counting_loader(root):
def counting_loader(root, **kwargs):
calls["n"] += 1
return real_loader(root)
return real_loader(root, **kwargs)
# Patch the symbol the watch module imported at module-load time.
monkeypatch.setattr(watch_mod, "_load_graphifyignore", counting_loader)