Skip to content

Commit 268312d

Browse files
committed
docs(tests): correct FileNotFoundError example message in tests/AGENTS.md
The example raises `FileNotFoundError("empty file not present: ...")` but the guard above it is `if not os.path.exists(input_path)`, which fires when the file is missing — not when it is empty. Update the message to match the actual condition so contributor-facing guidance reads true. Fixes #828. Closes #861.
1 parent 5f5b955 commit 268312d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# use_case.py - Pure business logic, no test infrastructure
1111
def extract_and_validate(input_path: str) -> str:
1212
if not os.path.exists(input_path):
13-
raise FileNotFoundError(f"empty file not present: {input_path}")
13+
raise FileNotFoundError(f"input file not found: {input_path}")
1414
return data
1515

1616
# test_orchestrator.py - All test orchestration separate

0 commit comments

Comments
 (0)