Skip to content

Conversation

@chalmerlowe
Copy link
Collaborator

Adds a test to each of the test sets for:

StorageDescriptor: test_from_api_repr
SerDeInfo: test_from_api_repr

@chalmerlowe chalmerlowe requested review from a team as code owners November 19, 2024 19:59
@chalmerlowe chalmerlowe requested a review from mrfaizal November 19, 2024 19:59
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Nov 19, 2024
@conventional-commit-lint-gcf
Copy link

conventional-commit-lint-gcf bot commented Nov 19, 2024

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Nov 19, 2024
@chalmerlowe chalmerlowe added the kokoro:run Add this label to force Kokoro to re-run the tests. label Nov 22, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Nov 22, 2024
@chalmerlowe chalmerlowe added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 22, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 22, 2024
# generate via API_REPR
result = klass.from_api_repr(resource)

assert result.to_api_repr() == expected.to_api_repr()
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels a little strange to have this test, which is intending to test from_api_repr, instead comparing the results of to_api_repr.

Could you write a comparison that checks that the result and expected match more directly?

Copy link
Contributor

Choose a reason for hiding this comment

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

On second thought, as I noted in github.com//pull/2076 since to_api_repr is tested I think this is actually ok.

@chalmerlowe chalmerlowe merged commit 9fd8854 into pangea-v1alpha Nov 25, 2024
19 of 20 checks passed
@chalmerlowe chalmerlowe deleted the add-from-api-tests branch November 25, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants