Repository navigation
Commit a0aa012
committed
test: fix flaky key-order assertions in structured output tests
Remove non-deterministic assertions on JSON key ordering in model
responses. LLMs do not guarantee response key order matches schema
property order. Tests now validate structured output correctness
(valid JSON with expected keys and types) instead.
Rename module/class/methods to reflect the new intent:
- test_ResponseFormatOrder.py -> test_StructuredOutput.py
- TestResponseFormatOrder -> TestStructuredOutput
- test_*_reason_then_ans -> test_*_structured_output_reason_first
- test_*_ans_then_reason -> test_*_structured_output_ans_first
Schema ordering preservation is already covered by the Scala
ResponseFormatOrderSuite unit tests.1 parent 1152f50 commit a0aa012
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments