Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 79b80fe

Browse files
committed
correct fixtures
1 parent 5ac0d5b commit 79b80fe

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

samples/pyarrow/append_rows_with_arrow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def bqstorage_write_client():
3030
return bigquery_storage_v1.BigQueryWriteClient()
3131

3232

33-
def make_table(project_id, dataset, bq_client):
33+
def make_table(project_id, dataset_id, bq_client):
3434
schema = [
3535
bigquery.SchemaField("bool_col", enums.SqlTypeNames.BOOLEAN),
3636
bigquery.SchemaField("int64_col", enums.SqlTypeNames.INT64),
@@ -59,7 +59,7 @@ def make_table(project_id, dataset, bq_client):
5959
),
6060
]
6161
table_id = "append_rows_w_arrow_test"
62-
table_id_full = f"{project_id}.{dataset}.{table_id}"
62+
table_id_full = f"{project_id}.{dataset_id}.{table_id}"
6363
bq_table = bigquery.Table(table_id_full, schema=schema)
6464
created_table = bq_client.create_table(bq_table)
6565

@@ -167,8 +167,8 @@ def append_rows(bqstorage_write_client, table):
167167
print(e)
168168

169169

170-
def main(project_id, dataset_id):
170+
def main(project_id, dataset):
171171
write_client = bqstorage_write_client()
172172
bq_client = bigquery.Client()
173-
table = make_table(project_id, dataset_id, bq_client)
173+
table = make_table(project_id, dataset.dataset_id, bq_client)
174174
append_rows(write_client, table)

samples/pyarrow/append_rows_with_arrow_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from . import append_rows_with_arrow
1616

1717

18-
def test_read_query_results(capsys, project_id, dataset_id):
19-
append_rows_with_arrow.main(project_id, dataset_id)
18+
def test_append_rows_with_arrow(capsys, project_id, dataset):
19+
append_rows_with_arrow.main(project_id, dataset)
2020
out, _ = capsys.readouterr()
2121
assert "append_result" in out

0 commit comments

Comments
 (0)