GeezerVison is showing github.com — tests: move systests into separate modules, refactor using pytest by tseaver · Pull Request #474 · googleapis/python-spanner
This repository was archived by the owner on Jun 8, 2026. It is now read-only.
Conversation
Replaces the existing legacy setup / teardown code with pytest fixtures.
Closes #472.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.
Toward #472.
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.
Toward #472.
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.
Toward #472.
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.
Toward #472.
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.
Toward #472.
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup/ teardown.
Toward #472.
Refactor to use pytest fixtures / idioms, rather than old 'Confog'
setup / teardown.
Toward #472.
snippet-bot
Bot
commented
Jul 30, 2021
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Here is the summary of changes.
You are about to add 11 region tags.
- tests/system/test_session_api.py:531, tag
spanner_test_dml_read_your_writes
- tests/system/test_session_api.py:569, tag
spanner_test_dml_rollback_txn_not_committed
- tests/system/test_session_api.py:603, tag
spanner_test_dml_read_your_writes
- tests/system/test_session_api.py:634, tag
spanner_test_dml_with_mutation
- tests/system/test_session_api.py:635, tag
spanner_test_dml_update
- tests/system/test_session_api.py:663, tag
spanner_test_dml_with_mutation
- tests/system/test_session_api.py:664, tag
spanner_test_dml_update
- tests/system/test_session_api.py:865, tag
spanner_test_dml_partioned_dml_update
- tests/system/test_session_api.py:1035, tag
spanner_test_single_key_index_read
- tests/system/test_session_api.py:1209, tag
spanner_test_single_key_read
- tests/system/test_session_api.py:1224, tag
spanner_test_empty_read
You are about to delete 11 region tags.
- tests/system/test_system.py:1572, tag
spanner_test_dml_read_your_writes
- tests/system/test_system.py:1609, tag
spanner_test_dml_rollback_txn_not_committed
- tests/system/test_system.py:1644, tag
spanner_test_dml_read_your_writes
- tests/system/test_system.py:1674, tag
spanner_test_dml_with_mutation
- tests/system/test_system.py:1675, tag
spanner_test_dml_update
- tests/system/test_system.py:1712, tag
spanner_test_dml_with_mutation
- tests/system/test_system.py:1713, tag
spanner_test_dml_update
- tests/system/test_system.py:1910, tag
spanner_test_dml_partioned_dml_update
- tests/system/test_system.py:2078, tag
spanner_test_single_key_index_read
- tests/system/test_system.py:2238, tag
spanner_test_single_key_read
- tests/system/test_system.py:2251, tag
spanner_test_empty_read
This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
tseaver
commented
Jul 30, 2021
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
A couple of notes on this PR:
- The backup systests are so slow, and occasionally flaky, that they may still need further hardening / tweaking.
- I see that the tests are failing under the emulator.
I need to work out how to run it locally to fix that. Done.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Avoids clash with 'test_list_instances' expectatons.
Raised from 'ListBackups' API on the CI emulator, but not locally.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Likewise the 'FauxCall' helper class it uses.
Reviewers
1 more reviewer
larkee
larkee approved these changes
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
api: spanner
Issues related to the googleapis/python-spanner API.
cla: yes
This human has signed the Contributor License Agreement.
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|