Skip to content

Commit 770de53

Browse files
authored
BigQueryTableExistenceSensor needs to specify keyword arguments (#9832)
1 parent 4aca72e commit 770de53

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

airflow/providers/google/cloud/sensors/bigquery.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,7 @@ def poke(self, context):
7171
hook = BigQueryHook(
7272
bigquery_conn_id=self.bigquery_conn_id,
7373
delegate_to=self.delegate_to)
74-
return hook.table_exists(self.project_id, self.dataset_id, self.table_id)
74+
return hook.table_exists(
75+
project_id=self.project_id,
76+
dataset_id=self.dataset_id,
77+
table_id=self.table_id)

tests/providers/google/cloud/sensors/test_bigquery.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_passing_arguments_to_hook(self, mock_hook):
4747
delegate_to=TEST_DELEGATE_TO
4848
)
4949
mock_hook.return_value.table_exists.assert_called_once_with(
50-
TEST_PROJECT_ID,
51-
TEST_DATASET_ID,
52-
TEST_TABLE_ID
50+
project_id=TEST_PROJECT_ID,
51+
dataset_id=TEST_DATASET_ID,
52+
table_id=TEST_TABLE_ID
5353
)

0 commit comments

Comments
 (0)