Commit 6a19548
firestore: cross-language tests (#4359)
* firestore: cross-language tests
Copied the cross-language tests from GoogleCloudPlatform/google-cloud-common
to this repo.
Generated the Python _pb2.py file for the test proto. This required some
path renaming, so I added a Makefile.
Added a unit test that reads and runs the test protos.
Sorted transform paths in get_transform_pb to make some tests pass.
Renamed tests that fail.
TODOs:
- Fix failing tests.
- Support tests of the set() method.
- Find a better place to put test_pb2.py. I don't understand
how import paths work so I couldn't figure this out.
* create client with project, instead of adding it later
* sort update mask for tests1 parent 460b606 commit 6a19548
102 files changed
Lines changed: 3426 additions & 948 deletions
File tree
- firestore
- google/cloud/firestore_v1beta1
- proto
- tests/unit
- gapic/v1beta1
- testdata
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
797 | | - | |
| 797 | + | |
| 798 | + | |
798 | 799 | | |
799 | 800 | | |
800 | 801 | | |
| |||
865 | 866 | | |
866 | 867 | | |
867 | 868 | | |
868 | | - | |
| 869 | + | |
| 870 | + | |
869 | 871 | | |
870 | 872 | | |
871 | 873 | | |
| |||
0 commit comments