test: add 6× ultra-premium multiplier tests (#1186)#1187
Open
test: add 6× ultra-premium multiplier tests (#1186)#1187
Conversation
…t and render_live_sessions Add test coverage for claude-opus-4.6-1m (6× multiplier) in both TestEstimatePremiumCost and TestRenderLiveSessions to guard against regressions that would silently cap the multiplier at 3×. Closes #1186 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds missing test coverage to ensure the 6× multiplier for the ultra-premium model claude-opus-4.6-1m is correctly applied all the way through the live-session “Est. Cost” rendering pipeline (preventing regressions where the multiplier is accidentally capped at 3× via tier-based logic).
Changes:
- Add a
render_live_sessionsintegration test assertingclaude-opus-4.6-1mdisplays~30for 5 calls and does not display~15. - Add a direct unit test for
_estimate_premium_costverifyingclaude-opus-4.6-1muses the raw6.0multiplier across multiple call counts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1186
Changes
Adds two missing tests that exercise the
claude-opus-4.6-1mmodel's 6× multiplier through the cost-estimation pipeline:TestEstimatePremiumCost::test_ultra_premium_tier_model_uses_6x_multiplier— verifies_estimate_premium_costcorrectly applies the 6.0× multiplier (not capped at 3×) for multiple call counts.TestRenderLiveSessions::test_est_cost_ultra_premium_model— integration test confirmingrender_live_sessionsdisplays~30(5 calls × 6.0) and does not show~15(which would indicate a 3× cap).These tests guard against the regression scenario described in the issue where refactoring
_estimate_premium_costto usepricing.tierinstead ofpricing.multiplierwould silently underestimate costs for ultra-premium models.Warning
The following domains were blocked by the firewall during workflow execution:
astral.shpypi.orgTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.