Skip to content

Compare an upgraded diagram's long run with its private call once upgraded - #515

Merged
derrynknife merged 1 commit into
devfrom
build/internals-after-upgrades
Nov 22, 2026
Merged

derrynknife merged 1 commit into
devfrom
build/internals-after-upgrades

Conversation

@derrynknife

Copy link
Copy Markdown
Owner

Summary

Three cases in test_public_internals.py fail on dev, with both surpyval 0.28 and dev: the action rates and the replacement cycle of the two upgraded kinds in the catalogue. A diagram with upgrades answers its long-run methods once upgraded (_long_run.follows_upgrades), but the test asked the private call of the diagram before the upgrade, which refuses. The test now asks the private call of the upgraded diagram, as the public method does. Test-only change; no library code changes.

The full suite on the 0.20 release PR would have failed on these.

Tests

test_public_internals.py: 809 passed with surpyval 0.28 and with surpyval dev (3 failed before).

🤖 Generated with Claude Code

https://claude.ai/code/session_01V339RzRHo8RS8Cz3uSbQgP

…raded

The public long-run methods are asked of the diagram once upgraded
(follows_upgrades); the test asked the private call of the diagram
itself, which refuses, and failed for the two upgraded kinds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V339RzRHo8RS8Cz3uSbQgP
@derrynknife
derrynknife merged commit 80437d2 into dev Nov 22, 2026
@derrynknife
derrynknife deleted the build/internals-after-upgrades branch November 22, 2026 00:22
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