Commit ddab0e1
test(thoughtspot): pin the last three loops that an empty collection satisfied
The remainder of the fail-open sweep. These were lower priority than the six in
cc5db0e because a sibling test happened to fail on the same mutation -- but
"another test noticed" is not the same as this test working, and the sibling can
be deleted or narrowed later without anyone seeing the cover disappear.
`test_every_table_or_sql_view_document_is_present` compares two sets, and
`set() == set()` holds, so a fixture with no table documents satisfied it and
the two sibling tests that walk the same collection. Pinned once for all three.
`test_column_type_is_never_a_bare_root_key` reads columns through a helper that
ends `or []`, so a model emitting no columns passed without checking one.
Not changed, deliberately: the ~16 tests whose loop iterable is a literal list
written inline in the test body. Those can only go empty if someone edits the
assertion out by hand, which no guard can prevent, and the six catalog
`test_classifications` tests already have a sibling pinning an exact row count.
942 tests pass.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent a2a590d commit ddab0e1
2 files changed
Lines changed: 9 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
513 | 516 | | |
514 | 517 | | |
515 | 518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
| 209 | + | |
205 | 210 | | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
| 217 | + | |
212 | 218 | | |
213 | 219 | | |
214 | 220 | | |
| |||
0 commit comments