feluelle commented on a change in pull request #6151: [AIRFLOW-5522] BQ list 
dataset tables operator
URL: https://github.com/apache/airflow/pull/6151#discussion_r326869867
 
 

 ##########
 File path: tests/gcp/operators/test_bigquery.py
 ##########
 @@ -566,3 +566,26 @@ def test_execute(self, mock_hook):
                 deletion_dataset_table=deletion_dataset_table,
                 ignore_if_missing=ignore_if_missing
             )
+
+
+class TestBigQueryGetDatasetTablesOperator(unittest.TestCase):
+    @mock.patch('airflow.gcp.operators.bigquery.BigQueryHook')
+    def test_execute(self, mock_hook):
+        operator = BigQueryGetDatasetTablesOperator(
+            task_id=TASK_ID,
+            dataset_id=TEST_DATASET,
+            project_id=TEST_GCP_PROJECT_ID,
+            max_results=2
+        )
+
+        operator.execute(None)
 
 Review comment:
   ```suggestion
           operator.execute(context=None)
   ```
   just my preference - change it only if you agree :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to