Skip to content

test: add comprehensive tests for normalize and dynamic emissions modules#188

Closed
aviu16 wants to merge 1 commit intoentrius:testfrom
aviu16:add-normalize-and-dynamic-emissions-tests
Closed

test: add comprehensive tests for normalize and dynamic emissions modules#188
aviu16 wants to merge 1 commit intoentrius:testfrom
aviu16:add-normalize-and-dynamic-emissions-tests

Conversation

@aviu16
Copy link

@aviu16 aviu16 commented Feb 13, 2026

Summary

  • Adds 37 unit tests (537 lines) covering normalize_rewards_linear() and apply_dynamic_emissions_using_network_contributions()
  • Tests edge cases including empty inputs, single miners, uniform/non-uniform rewards, zero totals, and boundary conditions
  • Validates emission floor/ceiling behavior, network contribution scaling, and mathematical correctness of normalization

Test plan

  • Run pytest tests/validator/test_normalize_and_dynamic_emissions.py -v to verify all 37 tests pass
  • Confirm no regressions in existing test suite with pytest tests/

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

…ules

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@anderdc anderdc closed this Feb 13, 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.

3 participants