Skip to content

Commit

Permalink
Fixed TestBigQueryCreateExternalTableOperator unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
cswpy committed Jul 12, 2022
1 parent 920a81c commit 420bdeb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/providers/google/cloud/operators/test_bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ def test_execute(self, mock_hook):
autodetect=True,
)

mock_hook.return_value.split_tablename.return_value = (
TEST_GCP_PROJECT_ID,
TEST_DATASET,
TEST_TABLE_ID,
)

operator.execute(context=MagicMock())
mock_hook.return_value.create_empty_table.assert_called_once_with(
table_resource={
Expand Down

0 comments on commit 420bdeb

Please sign in to comment.