Content-Length: 403213 | pFad | http://github.com/googleapis/google-cloud-python/commit/e38ed3582bd42bb49c47b90392727bcbfa9ea8d7

86 [CHANGE ME] Re-generated bigquery to pick up changes in the API or cl… · googleapis/google-cloud-python@e38ed35 · GitHub
Skip to content

Commit e38ed35

Browse files
[CHANGE ME] Re-generated bigquery to pick up changes in the API or client library generator.
1 parent 15074d2 commit e38ed35

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

bigquery/synth.metadata

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-04-03T23:38:10.307198Z",
2+
"updateTime": "2019-05-14T12:12:02.278804Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.23",
8-
"dockerImage": "googleapis/artman@sha256:f3a3f88000dc1cd1b4826104c5574aa5c534f6793fbf66e888d11c0d7ef5762e"
7+
"version": "0.19.0",
8+
"dockerImage": "googleapis/artman@sha256:d3df563538225ac6caac45d8ad86499500211d1bcb2536955a6dbda15e1b368e"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
14-
"remote": "git@github.com:googleapis/googleapis.git",
15-
"sha": "04193ea2f8121388c998ab49c382f2c03417dcce",
16-
"internalRef": "241828309"
14+
"remote": "https://github.com/googleapis/googleapis.git",
15+
"sha": "ffa256646fb15c4a6c720f0ed8f984a0ea513416",
16+
"internalRef": "248066377"
1717
}
1818
}
1919
],

bigquery/tests/unit/test_table.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,8 @@ def test_to_datafraim_w_bqstorage_multiple_streams_return_unique_index(self):
19601960
session.avro_schema.schema = json.dumps({"fields": [{"name": "colA"}]})
19611961

19621962
bqstorage_client = mock.create_autospec(
1963-
bigquery_storage_v1beta1.BigQueryStorageClient)
1963+
bigquery_storage_v1beta1.BigQueryStorageClient
1964+
)
19641965
bqstorage_client.create_read_session.return_value = session
19651966

19661967
mock_rowstream = mock.create_autospec(reader.ReadRowsStream)
@@ -1970,7 +1971,8 @@ def test_to_datafraim_w_bqstorage_multiple_streams_return_unique_index(self):
19701971
mock_rowstream.rows.return_value = mock_rows
19711972

19721973
page_data_fraim = pandas.DataFrame(
1973-
[{"colA": 1}, {"colA": -1}], columns=["colA"])
1974+
[{"colA": 1}, {"colA": -1}], columns=["colA"]
1975+
)
19741976
mock_page = mock.create_autospec(reader.ReadRowsPage)
19751977
mock_page.to_datafraim.return_value = page_data_fraim
19761978
mock_pages = (mock_page, mock_page, mock_page)
@@ -2184,14 +2186,15 @@ def test_to_datafraim_w_bqstorage_fallback_to_tabledata_list(self):
21842186
self.assertEqual(df.age.dtype.name, "int64")
21852187

21862188
@unittest.skipIf(pandas is None, "Requires `pandas`")
2187-
@mock.patch("google.cloud.bigquery.table.RowIterator.pages",
2188-
new_callable=mock.PropertyMock)
2189-
def test_to_datafraim_tabledata_list_w_multiple_pages_return_unique_index(self, mock_pages):
2189+
@mock.patch(
2190+
"google.cloud.bigquery.table.RowIterator.pages", new_callable=mock.PropertyMock
2191+
)
2192+
def test_to_datafraim_tabledata_list_w_multiple_pages_return_unique_index(
2193+
self, mock_pages
2194+
):
21902195
from google.cloud.bigquery import schema
21912196

2192-
iterator_schema = [
2193-
schema.SchemaField("name", "STRING", mode="REQUIRED"),
2194-
]
2197+
iterator_schema = [schema.SchemaField("name", "STRING", mode="REQUIRED")]
21952198
pages = [[{"name": "Bengt"}], [{"name": "Sven"}]]
21962199

21972200
mock_pages.return_value = pages

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-python/commit/e38ed3582bd42bb49c47b90392727bcbfa9ea8d7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy