Commit 9ea1509
test: check expected columns by name instead of strict shape[1] == 5
``test_get_dataset_annotations`` asserted ``res.shape[1] == 5`` against
the gemma-rest ``/datasets/{id}/annotations`` response. gemmapy commit
``fb7afb8`` ("add evidence code to annotation processing") added
``evidence_code`` to the DataFrame projection but didn't update this
test, so the assertion has been one column behind (now 6 cols, asserts
== 5).
Replace the bare shape[1] check with an expected-column-name subset
assertion. Verifies the columns we care about are present without
breaking the next time gemma-rest emits an additive field, which is the
contract direction (server-side additive fields are backwards-compatible
for clients that don't strict-check column counts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
EOF
)1 parent a966c0b commit 9ea1509
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
108 | 115 | | |
109 | 116 | | |
110 | 117 | | |
| |||
0 commit comments