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

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

Merged
gcf-merge-on-green[bot] merged 8 commits into
googleapis:masterfrom
tswast:system.py-step1-move
Jan 20, 2021
Merged

refactor: move system tests into tests/system directory#475
gcf-merge-on-green[bot] merged 8 commits into
googleapis:masterfrom
tswast:system.py-step1-move

Conversation

@tswast

@tswasttswast commented Jan 19, 2021

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

This aligns more closely with the templates from synthtool.
@tswast
tswast requested review from a team and steffnay and removed request for a teamJanuary 19, 2021 15:59
@google-clagoogle-claBot added the cla: yes This human has signed the Contributor License Agreement. label Jan 19, 2021
@product-auto-labelproduct-auto-labelBot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Jan 19, 2021
@tswast

Copy link
Copy Markdown
ContributorAuthor

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?

@plamutplamut left a comment

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.

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

Comment threadtests/system/__init__.py Outdated
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
Copy Markdown
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
Copy Markdown
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>
@tswasttswast 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-greenBot merged commit 9f6556c into googleapis:masterJan 20, 2021
@gcf-merge-on-greengcf-merge-on-greenBot 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 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.

2 participants

@tswast@plamut