Skip to content

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented Jun 23, 2021

Closes #475

Note to reviewers: this PR touches every bit of tests/system, splitting the monolithic tests/system/test_system.py into coherent pieces and refactoring them to use pytest fixtures. It is likely easiest to read commit-by-commit, at least until the pattern becomes clear.

tseaver added 30 commits June 23, 2021 12:59
Refactor to use pytest fixtures

Toward #475.
Refactor to use pytest fixtures

Toward #475.
Refactor to use pytest idioms.

Toward #475.
Refactor to use pytest idioms.

Toward #475.
Refactor to use pytest idioms.

Toward #475.
Make it return the actual credentials for use in testcases.
@tseaver tseaver requested review from a team, cojenco, frankyn and tritone June 23, 2021 17:04
@tseaver tseaver requested a review from a team as a code owner June 23, 2021 17:04
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label Jun 23, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 23, 2021
@tseaver tseaver force-pushed the 475-refactor-systests-using-pytest branch from 300e270 to 97fc701 Compare June 23, 2021 17:14
@tseaver tseaver requested a review from cojenco June 25, 2021 15:19
Copy link
Contributor

@cojenco cojenco left a comment

Choose a reason for hiding this comment

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

LGTM👍 Thanks @tseaver for making the big move of splitting the system test. Appreciate the iterative approach and review tips. It was nice to follow commit-by-commit.

@tseaver
Copy link
Contributor Author

tseaver commented Jun 25, 2021

Systests under Python 2.7 fail here because googleapis/python-test-utils#36: functools.wraps under Python 2.7 loses metadata wrapped functions, breaking pytest fixture injection.

Options:

@tseaver tseaver merged commit b20ca20 into master Jun 25, 2021
@tseaver tseaver deleted the 475-refactor-systests-using-pytest branch June 25, 2021 19:39
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* Move systests from monolith to new, more focused modules.
* Refactor systests to use pytest fixtures.

Closes googleapis#475
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* Move systests from monolith to new, more focused modules.
* Refactor systests to use pytest fixtures.

Closes googleapis#475
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/python-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor systests to use pytest fixtures

2 participants