Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

test: improve the row merging tests#623

Merged
Mariatta merged 5 commits into
googleapis:mainfrom
igorbernstein2:merger_tests
Aug 8, 2022
Merged

test: improve the row merging tests#623
Mariatta merged 5 commits into
googleapis:mainfrom
igorbernstein2:merger_tests

Conversation

@igorbernstein2

Copy link
Copy Markdown
Contributor

I left a TODO to allow easy updates of the file, unfortunately its not straight forward as the canonical protos get renamed for python gapic
Next PR will extract row merging functionality from row_data to make it easier to maintain

- extract read-rows-acceptance-test.json based tests into own file
- update the json to match the latest available in https://github.com/googleapis/conformance-tests/tree/main/bigtable/v2
- use parameterized pytest test to run all of the scenarios (instead of creating a function for each json blob)
- use json protobufs to parse the file

I left a TODO to allow easy updates of the file, unfortunately its not straight forward as the canonical protos get renamed for python gapic
Next PR will extract row merging functionality from row_data to make it easier to maintain
@igorbernstein2 igorbernstein2 requested review from a team August 5, 2022 17:05
@product-auto-label product-auto-label Bot added size: xl Pull request size is extra large. api: bigtable Issues related to the googleapis/python-bigtable API. labels Aug 5, 2022
@igorbernstein2 igorbernstein2 requested a review from Mariatta August 5, 2022 17:05

@Mariatta Mariatta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I think the refactoring using pytest parametrization is great.

@Mariatta Mariatta merged commit 972939f into googleapis:main Aug 8, 2022
@igorbernstein2 igorbernstein2 deleted the merger_tests branch August 8, 2022 20:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigtable Issues related to the googleapis/python-bigtable API. size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants