Skip to content

Fix broken pandas based tests - #5215

Merged
theacodes merged 2 commits into
googleapis:monitoring-autogenfrom
supriyagarg:monitoring-test
Apr 20, 2018
Merged

Fix broken pandas based tests#5215
theacodes merged 2 commits into
googleapis:monitoring-autogenfrom
supriyagarg:monitoring-test

Conversation

@supriyagarg

Copy link
Copy Markdown
Contributor

No description provided.

@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 20, 2018
@supriyagarg

Copy link
Copy Markdown
ContributorAuthor

@jonparrott Looks like the 2 lines not covered are the ones that check if pandas exists, and sets it to None otherwise: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/monitoring-autogen/monitoring/google/cloud/monitoring_v3/_dataframe.py#L21

What is a reasonable way to test this?

@tseaver

Copy link
Copy Markdown
Contributor

@supriyagarg you can just add #pragma: NO COVER to the except ImportError: line.

Also, the lint failures are:

google/cloud/monitoring_v3/__init__.py:22:80: E501linetoolong (80>79characters)
google/cloud/monitoring_v3/__init__.py:44:80: E501linetoolong (90>79characters)

@supriyagarg

Copy link
Copy Markdown
ContributorAuthor

@tseaver: thanks for your comments!
Fixed the coverage and lint errors.

@theacodes
theacodes merged commit 3f7210a into googleapis:monitoring-autogenApr 20, 2018
@theacodes

Copy link
Copy Markdown
Contributor

Thank you, @supriyagarg.

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

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@supriyagarg@tseaver@theacodes@googlebot