Skip to content

BigQuery: Fix the names of several pytest "skip if" markers#8694

Merged
tswast merged 1 commit intogoogleapis:masterfrom
plamut:fix-skip-fixtures
Jul 17, 2019
Merged

BigQuery: Fix the names of several pytest "skip if" markers#8694
tswast merged 1 commit intogoogleapis:masterfrom
plamut:fix-skip-fixtures

Conversation

@plamut
Copy link
Contributor

@plamut plamut commented Jul 17, 2019

I noticed that running BigQuery unit tests issues some warning, and some of them are caused by using a "skipIf" marker with pytest, while the name of that marker is actually "skipif" (all lowercase).

How to test

Run bigquery unit tests, e.g.:

$ nox -f noxfile.py -s unit-3.6

Actual result (before the fix):
Five warnings are reported, including the "Unknown pytest.mark.skipIf - is this a typo? ...".

Expected result (after the fix):
Only three warnings are reported, but none of them related to pytest markers.

"skipif" should be used instead of "skipIf", the latter is the thing
from the unittest nodule.
@plamut plamut added the api: bigquery Issues related to the BigQuery API. label Jul 17, 2019
@plamut plamut requested review from a team and tswast July 17, 2019 16:06
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 17, 2019
Copy link
Contributor

@tswast tswast left a comment

Choose a reason for hiding this comment

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

Oops. Thank you!

@tswast tswast merged commit a40d0d4 into googleapis:master Jul 17, 2019
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 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.

3 participants