GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@tseaver

@tseaver tseaver commented Jul 30, 2021

Copy link
Copy Markdown
Contributor

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.

All reactions
tseaver added 8 commits July 29, 2021 19:08
@tseaver
tests: move instance API systests to own module
fabe90f
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.

Toward #472.
@tseaver
tests: move database API systests to own module
26c9de0
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.

Toward #472.
@tseaver
tests: move table API systests to own module
e38267b
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.

Toward #472.
@tseaver
tests: move backup API systests to own module [WIP]
4f1c5b2
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.

Toward #472.
@tseaver
tests: move streaming/chunnking systests to own module
83c7201
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.

Toward #472.
@tseaver
tests: move session API systests to own module
6867cd6
Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup/ teardown.

Toward #472.
@tseaver
tests: move dbapi systests to owwn module
ab9901f
Refactor to use pytest fixtures / idioms, rather than old 'Confog'
setup / teardown.

Toward #472.
@tseaver
tests: remove legacy systest setup / teardown code
b085c22
Closes #472.
@tseaver
tseaver requested review from a team and larkee July 30, 2021 21:30
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the googleapis/python-spanner API. label Jul 30, 2021
@snippet-bot

snippet-bot Bot commented Jul 30, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 30, 2021
@tseaver

tseaver commented Jul 30, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver
tseaver marked this pull request as draft July 30, 2021 21:35
tseaver added 4 commits July 31, 2021 15:03
@tseaver
tests: don't pre-create datbase before restore attempt
c08501d
@tseaver
tests: fix instance config fixtures under emulator
822709f
@tseaver
tests: clean up alt instnce at module scope
5150003
Avoids clash with 'test_list_instances' expectatons.
@tseaver
tests: work around MethodNotImplemented
fb44176
Raised from 'ListBackups' API on the CI emulator, but not locally.
@tseaver
tseaver marked this pull request as ready for review July 31, 2021 21:14
tseaver added 2 commits August 5, 2021 16:18
@tseaver
Merge branch 'master' into 472-refactor-harden-systests
23910ac
@tseaver
chore: drop use of pytz in systests
4b3a9e8
See #479 for rationale.
larkee
larkee reviewed Aug 9, 2021
View reviewed changes
Comment thread tests/system/test_database_api.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/system/_helpers.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/system/test_instance_api.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/system/test_session_api.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

tseaver added 5 commits August 9, 2021 12:26
@tseaver
chore: fix fossil in comment
adf6561
@tseaver
chore: move '_check_batch_status' to only calling module
39123a4
Likewise the 'FauxCall' helper class it uses.
@tseaver
chore: improve testcase name
c7620d5
@tseaver
tests: replicate dbapi systest changes from #412 into new module
d77365f
@tseaver
Merge branch 'master' into 472-refactor-harden-systests
65e1f43
larkee
larkee approved these changes Aug 11, 2021
View reviewed changes
@larkee
larkee merged commit 5629bac into master Aug 11, 2021
@larkee
larkee deleted the 472-refactor-harden-systests branch August 11, 2021 04:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@larkee 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.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Refactor systests into separate modules, using pytest fixtures / idioms

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@tseaver @larkee
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.