Adds _connection object to bigquery magics context.#8192
Adds _connection object to bigquery magics context.#8192tswast merged 4 commits intogoogleapis:masterfrom
Conversation
|
This is the output of nox: Looks good except for coverage, which has this table: I'm not totally sure how to increase coverage / what's missing, I thought the test I added pretty thoroughly tests the Connection object? Perhaps I need one that tests not setting it? |
Correct. That's saying we're missing the branch where |
bigquery/tests/unit/test__helpers.py
Outdated
| return SchemaField(name=name, field_type=field_type, mode=mode, fields=fields) | ||
|
|
||
|
|
||
| def _make_connection(*responses): |
There was a problem hiding this comment.
This file is tests for _helpers, not helpers for tests. I'd recommend creating a separate tests/unit/helpers.py if you plan to do this refactoring.
There was a problem hiding this comment.
Fixed, thanks! I was wondering why the filename looked different...
8e22636 to
2578e54
Compare
Done! |
As recommended by: #8024 (comment).