turbaszek commented on a change in pull request #17488:
URL: https://github.com/apache/airflow/pull/17488#discussion_r684684519



##########
File path: tests/operators/test_subdag_operator.py
##########
@@ -307,3 +307,13 @@ def test_subdag_with_propagate_skipped_state(
             mock_skip.assert_called_once_with(context['dag_run'], 
context['execution_date'], [dummy_dag_task])
         else:
             mock_skip.assert_not_called()
+
+    def test_deprecation_warning(self):
+        dag = DAG('parent', default_args=default_args)
+        subdag = DAG('parent.test', default_args=default_args)
+        warning_message = """This class is deprecated.
+            Please use `airflow.utils.task_group.TaskGroup`."""

Review comment:
       This message will be printed like this:
   ```
   In [2]: print(warning_message)
   This class is deprecated.
                Please use `airflow.utils.task_group.TaskGroup`.
   ```
   Is this expected?




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