Repository navigation
Commit 57adfdf
test(tui): align pricing and picker-action tests with the 7d2308a provider fix
Five codewhale-tui tests failed after 7d2308a (reported on Linux at
0cf390f, confirmed by the same filters on macOS). In each case the
product behaviour is the intended one and the test encoded the old
behaviour:
- pricing::tests::stepfun_billing_surface_keeps_payg_separate_from_step_plan
and unpublished_cache_write_fails_closed_but_documented_same_rate_prices
used DEFAULT_STEPFUN_MODEL as a fixture while asserting Step 3.7 Flash's
PAYG rate (0.735) and its unpublished cache-write policy. The default is
now step-5-preview, whose documented cache-write is the input rate. The
tests now name step-3.7-flash, the model their numbers belong to.
- tui::ui::tests::model_picker_actions: Shift+P / Shift+F are query text
while searching (so `Step-5-Preview` can be typed), and Ctrl+P / Ctrl+F
act on the highlighted row. shift_p/shift_f_after_a_search_* become
ctrl_p/ctrl_f_after_a_search_* driving Ctrl chords, and
pin_and_fleet_hints_hide_when_no_catalog_route_is_highlighted now
expects the Ctrl hints while searching and no shifted hints.
Checks (macOS, on c5cd7c8 plus these two files): `scripts/dev-cargo.sh
test -p codewhale-tui --lib -- pricing::tests:: tui::ui::tests::model_picker_actions
tui::model_picker` 123 passed, 0 failed.
Touched paths: crates/tui/src/pricing.rs,
crates/tui/src/tui/ui/tests/model_picker_actions.rs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent c5cd7c8 commit 57adfdf
2 files changed
Lines changed: 37 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2843 | 2843 | | |
2844 | 2844 | | |
2845 | 2845 | | |
2846 | | - | |
| 2846 | + | |
2847 | 2847 | | |
2848 | 2848 | | |
2849 | 2849 | | |
2850 | 2850 | | |
2851 | 2851 | | |
2852 | 2852 | | |
2853 | | - | |
| 2853 | + | |
2854 | 2854 | | |
2855 | 2855 | | |
2856 | 2856 | | |
| |||
2871 | 2871 | | |
2872 | 2872 | | |
2873 | 2873 | | |
2874 | | - | |
| 2874 | + | |
2875 | 2875 | | |
2876 | 2876 | | |
2877 | 2877 | | |
| |||
3499 | 3499 | | |
3500 | 3500 | | |
3501 | 3501 | | |
3502 | | - | |
| 3502 | + | |
3503 | 3503 | | |
3504 | 3504 | | |
3505 | 3505 | | |
| |||
3512 | 3512 | | |
3513 | 3513 | | |
3514 | 3514 | | |
3515 | | - | |
| 3515 | + | |
3516 | 3516 | | |
3517 | 3517 | | |
3518 | 3518 | | |
3519 | 3519 | | |
3520 | 3520 | | |
3521 | 3521 | | |
3522 | 3522 | | |
3523 | | - | |
| 3523 | + | |
3524 | 3524 | | |
3525 | 3525 | | |
3526 | 3526 | | |
3527 | 3527 | | |
3528 | 3528 | | |
3529 | 3529 | | |
3530 | 3530 | | |
3531 | | - | |
| 3531 | + | |
3532 | 3532 | | |
3533 | 3533 | | |
3534 | 3534 | | |
3535 | 3535 | | |
3536 | 3536 | | |
3537 | 3537 | | |
3538 | | - | |
| 3538 | + | |
3539 | 3539 | | |
3540 | 3540 | | |
3541 | 3541 | | |
| |||
3559 | 3559 | | |
3560 | 3560 | | |
3561 | 3561 | | |
3562 | | - | |
| 3562 | + | |
3563 | 3563 | | |
3564 | 3564 | | |
3565 | 3565 | | |
3566 | 3566 | | |
3567 | 3567 | | |
3568 | 3568 | | |
3569 | 3569 | | |
3570 | | - | |
| 3570 | + | |
3571 | 3571 | | |
3572 | 3572 | | |
3573 | 3573 | | |
3574 | 3574 | | |
3575 | 3575 | | |
3576 | 3576 | | |
3577 | | - | |
| 3577 | + | |
3578 | 3578 | | |
3579 | 3579 | | |
3580 | 3580 | | |
3581 | 3581 | | |
3582 | 3582 | | |
3583 | 3583 | | |
3584 | 3584 | | |
3585 | | - | |
| 3585 | + | |
3586 | 3586 | | |
3587 | 3587 | | |
3588 | 3588 | | |
3589 | 3589 | | |
3590 | 3590 | | |
3591 | 3591 | | |
3592 | | - | |
| 3592 | + | |
3593 | 3593 | | |
3594 | 3594 | | |
3595 | 3595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
74 | | - | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
82 | | - | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | | - | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
119 | | - | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
123 | | - | |
| 127 | + | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| |||
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
140 | | - | |
| 144 | + | |
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
148 | | - | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
157 | | - | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
184 | | - | |
| 188 | + | |
185 | 189 | | |
186 | 190 | | |
187 | 191 | | |
| |||
272 | 276 | | |
273 | 277 | | |
274 | 278 | | |
275 | | - | |
276 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
277 | 282 | | |
278 | 283 | | |
279 | 284 | | |
| |||
284 | 289 | | |
285 | 290 | | |
286 | 291 | | |
287 | | - | |
| 292 | + | |
288 | 293 | | |
289 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
290 | 299 | | |
291 | 300 | | |
292 | 301 | | |
| |||
295 | 304 | | |
296 | 305 | | |
297 | 306 | | |
298 | | - | |
| 307 | + | |
299 | 308 | | |
300 | 309 | | |
301 | | - | |
| 310 | + | |
302 | 311 | | |
303 | 312 | | |
0 commit comments