Skip to content

fix: Adds keyword argument to test due to changes in sqlalchemy alembic #868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2023

Conversation

chalmerlowe
Copy link
Collaborator

@chalmerlowe chalmerlowe commented May 30, 2023

sqlalchemy-alembic changed the function signature for a number of functions:

They added an asterisk (*) into the function signature to separate positional arguments from keyword arguments.

This has the downstream effect of requiring keyword arguments to be spelled out when calling them within the function. This affected one of our tests, since none of the other tests specifically used any keyword arguments.

Based on a check through the code for other uses of functions from alembic, none of our other uses of the functions in either the body of the code OR in our tests appears to be impacted by the upstream change.

Fixes #862 🦕

@chalmerlowe chalmerlowe requested review from a team as code owners May 30, 2023 14:15
@chalmerlowe chalmerlowe requested a review from GaoleMeng May 30, 2023 14:15
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. labels May 30, 2023
@chalmerlowe chalmerlowe changed the title Adds keyword argument to test due to changes in sqlalchemy alembic fix: Adds keyword argument to test due to changes in sqlalchemy alembic May 30, 2023
@conventional-commit-lint-gcf
Copy link

conventional-commit-lint-gcf bot commented May 30, 2023

🤖 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/

@chalmerlowe chalmerlowe added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 30, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 30, 2023
@chalmerlowe chalmerlowe added automerge Merge the pull request once unit tests and other checks pass. and removed automerge Merge the pull request once unit tests and other checks pass. labels May 30, 2023
@chalmerlowe chalmerlowe merged commit d7b00aa into main May 31, 2023
@chalmerlowe chalmerlowe deleted the alembic-fail branch May 31, 2023 12:28
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-sqlalchemy API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests.system.test_alembic: test_alembic_scenario failed
4 participants