Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

chore: add unit test nox session without extras installed - #623

Merged
tswast merged 1 commit into
googleapis:masterfrom
plamut:iss-621
Apr 23, 2021
Merged

chore: add unit test nox session without extras installed#623
tswast merged 1 commit into
googleapis:masterfrom
plamut:iss-621

Conversation

@plamut

@plamutplamut commented Apr 22, 2021

Copy link
Copy Markdown
Contributor

Closes#621. 🦕

The new check revealed a few cases where not installing extras caused some of the tests to fail, but that was due to test setup, and not the codebase itself.

PR checklist:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@plamut
plamut requested review from a team and stephaniewang526 and removed request for a teamApril 22, 2021 12:36
@google-clagoogle-claBot added the cla: yes This human has signed the Contributor License Agreement. label Apr 22, 2021
@product-auto-labelproduct-auto-labelBot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Apr 22, 2021
@plamut
plamut requested a review from tswastApril 22, 2021 12:36
Comment threadnoxfile.py
Comment on lines +95 to +96
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[-1])
def unit_noextras(session):

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Presumably using just the latest version is fine?
(the CI will finish faster)

On rare occasions an extra requires a more recent Python version, but I can't recall any cases when an extra would be restricted to older Python versions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sounds good to me. We could also use DEFAULT_PYTHON_VERSION here, though that's not always the latest.

Comment threadnoxfile.py
Comment on lines +95 to +96
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[-1])
def unit_noextras(session):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sounds good to me. We could also use DEFAULT_PYTHON_VERSION here, though that's not always the latest.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add test session to nox without installing any "extras"

2 participants

@plamut@tswast