Commit c04e07c
committed
tests: tighten assertion in test_recv_results_metadata_no_metadata_flag_skips_metadata_id
The previous assertion used 'not hasattr(...) or ... is None' which would pass
even if the code had a bug that explicitly set result_metadata_id = None instead
of leaving the attribute absent.
result_metadata_id is not a class attribute on ResultMessage, so the correct
assertion is 'assert not hasattr(msg, "result_metadata_id")'.
column_metadata IS a class attribute (= None), so its assertion is adjusted to
'assert msg.column_metadata is None'.1 parent c0495a7 commit c04e07c
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
231 | 234 | | |
232 | 235 | | |
233 | 236 | | |
| |||
0 commit comments