Skip to content

Keep the clean pandapower fixture clean under powerio 0.11.8+ - #151

Merged
qian-harvard merged 1 commit into
mainfrom
fix/clean-fixture-single-rating
Nov 11, 2026
Merged

qian-harvard merged 1 commit into
mainfrom
fix/clean-fixture-single-rating

Conversation

@qian-harvard

Copy link
Copy Markdown
Contributor

Problem

tests/test_powerio_server.py::test_pandapower_response_states_an_empty_warnings_list fails on any fresh install, so main's CI goes red on its next run:

AssertionError: assert ['EMIT.PANDAPOWER.FIELD_DROPPED: 1 branch rate_b/rate_c value set(s) dropped: pandapower carries one loading limit'] == []

The test's CLEAN_CASE fixture is meant to raise no diagnostics, but its one branch sets rate_a, rate_b and rate_c to 250. pandapower keeps a single loading limit. Since powerio 0.11.8 (released 2026-11-05), dropping the other two values on the way into pandapower produces a warning. CI has passed so far only because the last runs installed an older powerio.

Fix

Set only rate_a on the fixture branch, so the case really is clean, and say why in the fixture comment. The warning itself is correct, so nothing in the adapter changes.

Tests

  • With the original fixture, the test passes on powerio 0.11.7 and fails on 0.11.8.
  • With this change, tests/test_powerio_server.py passes on powerio 0.11.11 (65 passed, 5 skipped).
  • Full CI suite on Python 3.12 with powerio 0.11.11: this was the only failure (757 passed).

This blocks the 0.5.0 release PR, and #149 and #150 will hit it too.

🤖 Generated with Claude Code

The "no diagnostics" fixture set rate_a, rate_b and rate_c on its one
branch. pandapower keeps a single loading limit, and powerio 0.11.8
started warning when rate_b/rate_c are dropped on emission, so
test_pandapower_response_states_an_empty_warnings_list fails on any
fresh install. Set only rate_a so the case is genuinely clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@qian-harvard
qian-harvard merged commit 0017882 into main Nov 11, 2026
5 checks passed
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