Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Get coverage to 100%
But why do we run coverage on test code?
  • Loading branch information
Jim Fulton
Jim Fulton committed Apr 7, 2021
commit d453031fc588c221f90d2616b9e3e0f3dc5438cc
6 changes: 2 additions & 4 deletions tests/unit/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ def _to_pyarrow(value):
return pyarrow.array([value])[0]


def make_client(project="PROJECT", credentials=None, **kw):
if credentials is None:
credentials = mock.Mock(spec=google.auth.credentials.Credentials)

def make_client(project="PROJECT", **kw):
credentials = mock.Mock(spec=google.auth.credentials.Credentials)
return google.cloud.bigquery.client.Client(project, credentials, **kw)


Expand Down