Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support parsing DATE columns from Standard SQL tables#2265

Merged
tseaver merged 1 commit into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
thejens:masterthejens/google-cloud-python:masterCopy head branch name to clipboard
Sep 9, 2016
Merged

Support parsing DATE columns from Standard SQL tables#2265
tseaver merged 1 commit into
googleapis:mastergoogleapis/google-cloud-python:masterfrom
thejens:masterthejens/google-cloud-python:masterCopy head branch name to clipboard

Conversation

@thejens

@thejens thejens commented Sep 8, 2016

Copy link
Copy Markdown

Change-Id: I158b48b6470ff44ff006e18d5eb8e3540749670b

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 8, 2016
@thejens thejens force-pushed the master branch 2 times, most recently from 5ce1578 to dfdad0e Compare September 8, 2016 11:56
@thejens

thejens commented Sep 8, 2016

Copy link
Copy Markdown
Author

... guess I couldn't quite figure out how to unit test the _date_from_json as I couldn't find where the other _X_from_json functions were tested

@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

Tests for the bigquery._helpers module are here.

@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

Thanks for the patch, BTW!

@thejens

thejens commented Sep 8, 2016

Copy link
Copy Markdown
Author

@tseaver Ty, I did find the tests module, but as the function I added had several similar functions I wanted to test it consistently, and I guess I couldn't find the tests for the others;

Ex. I added _date_from_json and "_float_from_json" already existed hence I want to test it in the same manner, but can't see where that happens

@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

@thejens Hmmm, I see what you mean. Those helpers are being covered indirectly through the tests for query and table. They should probably have their own coverage in test__helpers.py, though.

@daspecster daspecster added the api: bigquery Issues related to the BigQuery API. label Sep 8, 2016
@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

@thejens I landed more comprehensive tests for google.cloud.bigquery._helpers in #2272. They should serve as a model for your tests of _date_from_json.

Change-Id: I20a6fff4362e27ee35286a3538c24e37bc858faf
@thejens

thejens commented Sep 9, 2016

Copy link
Copy Markdown
Author

@tseaver Thanks for putting those tests there; seems they and the one I added passed

@tseaver tseaver merged commit 298b28a into googleapis:master Sep 9, 2016
@tseaver

tseaver commented Sep 9, 2016

Copy link
Copy Markdown
Contributor

@thejens Thanks again!

@dhermes dhermes mentioned this pull request Sep 19, 2016
parthea added a commit that referenced this pull request Nov 24, 2025
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea pushed a commit that referenced this pull request Mar 6, 2026
…#2265)

* chore: migrate test_base retry tests

* migrate job_helpers test

* migrate more tests

* fix initiate resumable upload tests

* fix failing tests

* remove dead test code
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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.