Taragolis commented on code in PR #38673:
URL: https://github.com/apache/airflow/pull/38673#discussion_r1557270621


##########
tests/providers/google/cloud/operators/test_automl.py:
##########
@@ -90,6 +100,22 @@ def test_execute(self, mock_hook):
             metadata=(),
         )
 
+    
@mock.patch("airflow.providers.google.cloud.operators.automl.CloudAutoMLHook")
+    def test_execute_deprecated(self, mock_hook):
+        op = AutoMLTrainModelOperator(
+            model=MODEL_DEPRECATED,
+            location=GCP_LOCATION,
+            project_id=GCP_PROJECT_ID,
+            task_id=TASK_ID,
+        )
+        with pytest.raises(AirflowProviderDeprecationWarning) as err:

Review Comment:
   warnings intends to be checked by the 
[`pytest.warns`](https://docs.pytest.org/en/stable/how-to/capture-warnings.html#warns)
   



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