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
6 changes: 5 additions & 1 deletion tests/test_repository_metadata_reconciliation.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ def test_pages_and_docs_probes(monkeypatch) -> None:
RECONCILER._pages_exists("Repo")

responses = iter(
[completed(), completed(code=1, out="Not Found"), completed(code=1, err="boom")]
[
completed(out=json.dumps({"type": "file"})),
completed(code=1, out="Not Found"),
completed(code=1, err="boom"),
]
Comment on lines +229 to +233

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Info: Fixture now matches the file probe's JSON-body contract

On a returncode-0 response, _repository_file_exists runs json.loads on stdout, so the old empty-stdout success fixture raised JSONDecodeError instead of returning True. The {"type":"file"} body now exercises the True branch and matches the shape already used in test_repository_file_probe_requires_a_regular_file.

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

)
monkeypatch.setattr(
RECONCILER.subprocess, "run", lambda *args, **kwargs: next(responses)
Expand Down
Loading