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 — refactor: move system tests into `tests/system` directory by tswast · Pull Request #475 · googleapis/python-bigquery

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

Conversation

@tswast

@tswast tswast commented Jan 19, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

This aligns more closely with the templates from synthtool.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • 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)

Towards #366

Sorry, something went wrong.

Uh oh!

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

All reactions
@tswast
refactor: move system tests into tests/system directory
db45efb
This aligns more closely with the templates from synthtool.
@tswast
tswast requested review from a team and steffnay and removed request for a team January 19, 2021 15:59
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 19, 2021
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Jan 19, 2021
tswast added 2 commits January 19, 2021 10:04
@tswast
refactor: use pathlib for data directory
95ae6bb
@tswast
typo
7e13b3c
@tswast tswast mentioned this pull request Jan 19, 2021
refactor: split system tests across modules #448
Closed
4 tasks
@tswast
tswast requested review from plamut and shollyman January 19, 2021 16:08
tswast added 3 commits January 19, 2021 10:14
@tswast
refactor: add missing dependencies to prerelease_deps
9485f0f
@tswast
typo
d4eed7f
@tswast
tests: add google-cloud-storage to prerelease_deps
8c5d825
@tswast

tswast commented Jan 19, 2021

Copy link
Copy Markdown
Contributor Author

prerelease-deps-3.8 test failures are both in the unit tests. https://source.cloud.google.com/results/invocations/aed3c05e-366a-404e-b90a-ecb134327e41/targets/cloud-devrel%2Fclient-libraries%2Fpython%2Fgoogleapis%2Fpython-bigquery%2Fpresubmit%2Fprerelease-deps-3.8/log

Neither seem particularly related to pyarrow (failure due to bad nightly) or to this change.

Perhaps there's some state that's being held onto when the unit tests are run in the same pytest run as the system tests?

All reactions

Sorry, something went wrong.

Uh oh!

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

@tswast
test: run unit tests separately from system tests
4d0ae0c
plamut
plamut approved these changes Jan 20, 2021
View reviewed changes

@plamut plamut left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Apart from a license header nit, it looks good to me. 👍

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread tests/system/__init__.py Resolved

Uh oh!

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

Comment thread tests/system/test_magics.py
Comment on lines +23 to +27
IPython = pytest.importorskip("IPython")
io = pytest.importorskip("IPython.utils.io")
pandas = pytest.importorskip("pandas")
tools = pytest.importorskip("IPython.testing.tools")
interactiveshell = pytest.importorskip("IPython.terminal.interactiveshell")

@plamut plamut Jan 20, 2021

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Nice, this is IMO more clean that those skipIf decorators. 👍

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread tests/system/test_client.py
JOB_TIMEOUT = 120 # 2 minutes
WHERE = os.path.abspath(os.path.dirname(__file__))
JOB_TIMEOUT = 120 # 2 minute
DATA_PATH = pathlib.Path(__file__).parent.parent / "data"

@plamut plamut Jan 20, 2021

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Love these small improvements and utilizing the goodies Python 3 offers!

Sorry, something went wrong.

Uh oh!

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

tswast reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@tswast @plamut
Update tests/system/__init__.py
6a778a5
Co-authored-by: Peter Lamut <[email protected]>
@tswast tswast added the automerge Merge the pull request once unit tests and other checks pass. label Jan 20, 2021
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit 9f6556c into googleapis:master Jan 20, 2021
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jan 20, 2021
@tswast
tswast deleted the system.py-step1-move branch January 21, 2021 15:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@steffnay steffnay Awaiting requested review from steffnay
@shollyman shollyman Awaiting requested review from shollyman
1 more reviewer
@plamut plamut plamut 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: bigquery Issues related to the googleapis/python-bigquery 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.

Uh oh!

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

2 participants

@tswast @plamut
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.