Skip to content

Add tests for Arg.arrow_type functionality#22

Merged
rustyconover merged 3 commits into
feature/example-arrow-typefrom
test/arg-arrow-type
Jan 5, 2026
Merged

Add tests for Arg.arrow_type functionality#22
rustyconover merged 3 commits into
feature/example-arrow-typefrom
test/arg-arrow-type

Conversation

@rustyconover

Copy link
Copy Markdown
Contributor

Summary

Adds comprehensive tests for the Arg.arrow_type feature:

TestArgArrowType:

  • Verify arrow_type is stored when explicitly set
  • Verify default is None
  • Verify repr behavior with/without arrow_type

TestExtractArgumentSpecsAutoInference:

  • Test all PYTHON_TO_ARROW mappings (int→int64, str→utf8, etc.)
  • Verify explicit arrow_type overrides inference

Depends on PR #21 (example arrow_type usage).

Test plan

  • All 666 tests pass (10 new tests)
  • Ruff linting passes
  • mypy type checking passes

🤖 Generated with Claude Code

rustyconover and others added 2 commits January 5, 2026 16:00
Add comprehensive tests for the new arrow_type feature:

TestArgArrowType:
- test_explicit_arrow_type_stored
- test_default_arrow_type_is_none
- test_arrow_type_in_repr
- test_arrow_type_not_in_repr_when_none

TestExtractArgumentSpecsAutoInference:
- test_int_infers_int64
- test_str_infers_utf8
- test_float_infers_float64
- test_bool_infers_bool
- test_bytes_infers_binary
- test_explicit_overrides_inference

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Resolve conflict in tests/test_argument_spec.py by keeping both:
- TestArgArrowType and TestExtractArgumentSpecsAutoInference (from this branch)
- TestArgumentSpecRepr (from feature/example-arrow-type)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rustyconover rustyconover merged commit c8a162f into feature/example-arrow-type Jan 5, 2026
@rustyconover rustyconover deleted the test/arg-arrow-type branch January 5, 2026 21:14
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