Skip to content

Commit

Permalink
test: give filesystem paths to pytest-cov (#8)
Browse files Browse the repository at this point in the history
* changes without context

        autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.

* chore(deps): update precommit hook pre-commit/pre-commit-hooks to v3.3.0

Source-Author: WhiteSource Renovate <bot@renovateapp.com>
Source-Date: Wed Dec 2 17:18:24 2020 +0100
Source-Repo: googleapis/synthtool
Source-Sha: 69629b64b83c6421d616be2b8e11795738ec8a6c
Source-Link: googleapis/synthtool@69629b6

* test(python): give filesystem paths to pytest-cov

https://pytest-cov.readthedocs.io/en/latest/config.html

The pytest-cov docs seem to suggest a filesystem path is expected.

Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
Source-Date: Wed Dec 2 09:28:04 2020 -0700
Source-Repo: googleapis/synthtool
Source-Sha: f94318521f63085b9ccb43d42af89f153fb39f15
Source-Link: googleapis/synthtool@f943185
  • Loading branch information
yoshi-automation authored Dec 3, 2020
1 parent fad332f commit 3ecc061
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-data-qna/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v3.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

__all__ = (
"AnnotatedString",
"AutoSuggestionServiceClient",
"BigQueryJob",
"CreateQuestionRequest",
"DataQuery",
Expand All @@ -57,13 +58,12 @@
"Interpretation",
"InterpretationStructure",
"Question",
"QuestionServiceClient",
"SuggestQueriesRequest",
"SuggestQueriesResponse",
"Suggestion",
"SuggestionInfo",
"SuggestionType",
"UpdateUserFeedbackRequest",
"UserFeedback",
"AutoSuggestionServiceClient",
"QuestionServiceClient",
)
5 changes: 2 additions & 3 deletions packages/google-cloud-data-qna/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ def default(session):
session.run(
"py.test",
"--quiet",
"--cov=google.cloud.dataqna",
"--cov=google.cloud",
"--cov=tests.unit",
"--cov=google/cloud",
"--cov=tests/unit",
"--cov-append",
"--cov-config=.coveragerc",
"--cov-report=",
Expand Down
6 changes: 3 additions & 3 deletions packages/google-cloud-data-qna/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-data-qna.git",
"sha": "0a7ae50fe08a02ff180dbc85d1ac3c544f3e440a"
"sha": "716cd7c25b330fe40ebd9ded097643779b579862"
}
},
{
Expand All @@ -19,14 +19,14 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "32af6da519a6b042e3da62008e2a75e991efb6b4"
"sha": "f94318521f63085b9ccb43d42af89f153fb39f15"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "32af6da519a6b042e3da62008e2a75e991efb6b4"
"sha": "f94318521f63085b9ccb43d42af89f153fb39f15"
}
}
],
Expand Down

0 comments on commit 3ecc061

Please sign in to comment.