Skip to content

rewrite test_files: structured, parametrized, edge-case coverage#1206

Open
tpbrown wants to merge 2 commits intoanthropics:mainfrom
tpbrown:improve-test-files
Open

rewrite test_files: structured, parametrized, edge-case coverage#1206
tpbrown wants to merge 2 commits intoanthropics:mainfrom
tpbrown:improve-test-files

Conversation

@tpbrown
Copy link

@tpbrown tpbrown commented Feb 26, 2026

Rewrites tests/test_files.py from 6 flat tests (with print debugging) to 50 parametrized, grouped tests covering all public functions in anthropic._files: type guards (is_file_content, is_base64_file_input, assert_is_file_content), sync/async content reading, and sync/async httpx transformation. Adds edge cases: empty inputs, None passthrough, invalid top-level types, tuple passthrough semantics, IO/bytes identity checks.

@tpbrown tpbrown requested a review from a team as a code owner February 26, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant