kaxil commented on code in PR #26102:
URL: https://github.com/apache/airflow/pull/26102#discussion_r961157303


##########
tests/providers/google/cloud/hooks/test_bigquery.py:
##########
@@ -2053,3 +2055,195 @@ def test_create_external_table_description(self, 
mock_create):
 
         _, kwargs = mock_create.call_args
         assert kwargs['table_resource']['description'] is description
+
+
[email protected]
[email protected]("airflow.providers.google.cloud.hooks.bigquery.ClientSession")
+async def test_get_job_instance(mock_session):
+    hook = BigQueryHookAsync()
+    result = await hook.get_job_instance(project_id=PROJECT_ID, job_id=JOB_ID, 
session=mock_session)
+    assert isinstance(result, Job)

Review Comment:
   
https://github.com/astronomer/astronomer-providers/blob/main/tests/google/cloud/hooks/test_bigquery.py#L74-L79
   
   Tests are also copied from astronomer providers.
   



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to