mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
fix(test): correct patch target in test_retrieve — must patch embedding.get_embed_status, not status.get_embed_status, because retrieve.py imports from __init__ re-export
This commit is contained in:
parent
9f95da3372
commit
a50a1510bd
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ def test_retrieve_reports_corrupted_vector_index(tmp_path, capsys):
|
|||
vault.mkdir()
|
||||
args = Namespace(vault_path=vault, query="acl", limit=5, expand=True, json=False)
|
||||
|
||||
with patch("paperforge.embedding.status.get_embed_status") as mock_status:
|
||||
with patch("paperforge.embedding.get_embed_status") as mock_status:
|
||||
mock_status.return_value = {
|
||||
"db_exists": True,
|
||||
"chunk_count": 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue