Content-Length: 359704 | pFad | https://github.com/googleapis/python-bigquery/pull/475

24 refactor: move system tests into `tests/system` directory by tswast · Pull Request #475 · googleapis/python-bigquery · GitHub
Skip to content

refactor: move system tests into tests/system directory #475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 20, 2021

Conversation

tswast
Copy link
Contributor

@tswast tswast commented Jan 19, 2021

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

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
Copy link
Contributor Author

tswast commented Jan 19, 2021

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?

Copy link
Contributor

@plamut plamut left a 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. 👍

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")
Copy link
Contributor

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. 👍

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"
Copy link
Contributor

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!

Co-authored-by: Peter Lamut <plamut@users.noreply.github.com>
@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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-bigquery/pull/475

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy