Skip to content

Commit 9374e9d

Browse files
committed
fix arguments mode
1 parent 6bc7d19 commit 9374e9d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

python-package/basedosdados/upload/table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ def _load_schema_from_bq(
150150
"""Load schema from table config
151151
152152
Args:
153-
mode: Which dataset to create [`prod`|`staging`].
153+
project_gcp: Which dataset to create [`prod`|`staging`].
154154
155155
"""
156-
table_columns = self._get_columns_from_bq()
156+
table_columns = self._get_columns_from_bq(project_gcp=project_gcp)
157157
columns = table_columns.get("partition_columns") + table_columns.get(
158158
"columns"
159159
)

python-package/tests/test_table.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ def test_get_columns_from_data():
211211
out2 = table._get_columns_from_data(
212212
data_sample_path="tests/sample_data/table",
213213
source_format="csv",
214-
mode="staging",
215214
)
216215

217216
assert isinstance(out, dict)

0 commit comments

Comments
 (0)