This repository was archived by the owner on Mar 26, 2026. It is now read-only.
Commit ebc38bf
committed
Fix pager test assertions for ListValue and Struct types
Relax assertion checks in generated pager tests to allow `Sequence` for `struct_pb2.ListValue` and `Mapping` for `struct_pb2.Struct`, as `proto-plus` converts these WKTs to native Python types. Also handles `struct_pb2.Value` mapping to `Any`.
This fixes an `AssertionError` where tests expected `struct_pb2.ListValue` instances but received list-like objects (e.g. `RepeatedComposite` or `list`).1 parent b75b8f4 commit ebc38bf
2 files changed
Lines changed: 31 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
755 | 764 | | |
756 | 765 | | |
| 766 | + | |
757 | 767 | | |
758 | 768 | | |
759 | 769 | | |
| |||
913 | 923 | | |
914 | 924 | | |
915 | 925 | | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
916 | 935 | | |
917 | 936 | | |
918 | 937 | | |
| 938 | + | |
919 | 939 | | |
920 | 940 | | |
921 | 941 | | |
| |||
1412 | 1432 | | |
1413 | 1433 | | |
1414 | 1434 | | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
1415 | 1444 | | |
1416 | 1445 | | |
1417 | 1446 | | |
| 1447 | + | |
1418 | 1448 | | |
1419 | 1449 | | |
1420 | 1450 | | |
| |||
0 commit comments