Skip to content

test: expand growth serialization coverage to all axis types#1076

Merged
henryiii merged 3 commits intohenryiii/feat/axesgrowthfrom
copilot/sub-pr-1074
Jan 28, 2026
Merged

test: expand growth serialization coverage to all axis types#1076
henryiii merged 3 commits intohenryiii/feat/axesgrowthfrom
copilot/sub-pr-1074

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 28, 2026

Addresses review feedback requesting comprehensive test coverage for growth trait serialization across all supported axis types.

Changes

  • Converted test_round_trip_growth from single Integer axis test to parametrized test covering all 5 axis types supporting growth: Integer, Regular, Variable, IntCategory, and StrCategory
  • Each test case verifies histogram equality, axis type preservation, and growth trait persistence through UHI serialization/deserialization round-trip

The parametrized approach ensures all serialization code paths added in #1074 for the growth trait are properly tested.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: henryiii <4616906+henryiii@users.noreply.github.com>
Copilot AI changed the title [WIP] Update axes growth support in serialization based on review feedback test: expand growth serialization coverage to all axis types Jan 28, 2026
Copilot AI requested a review from henryiii January 28, 2026 15:27
@github-actions github-actions bot added the needs changelog Might need a changelog entry label Jan 28, 2026
@henryiii
Copy link
Copy Markdown
Member

pre-commit.ci autofix

@henryiii
Copy link
Copy Markdown
Member

This is excellent, by the way, exactly how I would have written it. It's parametrized, and each parameter has an ID so that it prints nicely on the summary.

@henryiii henryiii marked this pull request as ready for review January 28, 2026 15:36
@henryiii henryiii merged commit babe4a4 into henryiii/feat/axesgrowth Jan 28, 2026
19 checks passed
@henryiii henryiii deleted the copilot/sub-pr-1074 branch January 28, 2026 15:37
henryiii added a commit that referenced this pull request Jan 28, 2026
* feat: support axes growth in serialization

Signed-off-by: Henry Schreiner <henryfs@princeton.edu>

* test: expand growth serialization coverage to all axis types (#1076)

* Initial plan

* test: expand growth serialization test to cover all axis types

Co-authored-by: henryiii <4616906+henryiii@users.noreply.github.com>

* style: pre-commit fixes

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: henryiii <4616906+henryiii@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

---------

Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: henryiii <4616906+henryiii@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@henryiii henryiii removed the needs changelog Might need a changelog entry label Feb 2, 2026
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.

2 participants