Skip to content

Add unit tests for RoutingProblem.get_power#186

Open
TanyaC07 wants to merge 1 commit into52North:mainfrom
TanyaC07:main
Open

Add unit tests for RoutingProblem.get_power#186
TanyaC07 wants to merge 1 commit into52North:mainfrom
TanyaC07:main

Conversation

@TanyaC07
Copy link
Copy Markdown

@TanyaC07 TanyaC07 commented Mar 24, 2026

Added a pytest unit test class for RoutingProblem.get_power
as part of my GSoC 2026 application for the
"Improve Test Framework" project.

Tests cover:

  • Return type and structure validation
  • Positive fuel consumption with SI units (kg)
  • Positive arrival-time objective
  • Determinism (same input = same output)
  • Physics sanity check (faster speed = more fuel)

All 8 tests pass: 8 passed in 105.54s
image

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