Skip to content

Commit

Permalink
Fix failing tests from #9124 (#9356)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj authored Jun 17, 2020
1 parent 66e7382 commit 281095e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions airflow/operators/check_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
SQLCheckOperator, SQLIntervalCheckOperator, SQLThresholdCheckOperator, SQLValueCheckOperator,
)

warnings.warn(
"This module is deprecated. Please use `airflow.operators.sql`.",
DeprecationWarning, stacklevel=2
)


class CheckOperator(SQLCheckOperator):
"""
Expand Down
5 changes: 5 additions & 0 deletions airflow/operators/sql_branch_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

from airflow.operators.sql import BranchSQLOperator

warnings.warn(
"""This module is deprecated. Please use `airflow.operators.sql`.""",
DeprecationWarning, stacklevel=2
)


class BranchSqlOperator(BranchSQLOperator):
"""
Expand Down
10 changes: 5 additions & 5 deletions tests/test_core_to_contrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,24 +1170,24 @@
'airflow.operators.presto_check_operator.PrestoValueCheckOperator',
),
(
'airflow.operators.check_operator.CheckOperator',
'airflow.operators.sql.SQLCheckOperator',
'airflow.operators.check_operator.CheckOperator',
),
(
'airflow.operators.check_operator.IntervalCheckOperator',
'airflow.operators.sql.SQLIntervalCheckOperator',
'airflow.operators.check_operator.IntervalCheckOperator',
),
(
'airflow.operators.check_operator.ValueCheckOperator',
'airflow.operators.sql.SQLValueCheckOperator',
'airflow.operators.check_operator.ValueCheckOperator',
),
(
'airflow.operators.check_operator.ThresholdCheckOperator',
'airflow.operators.sql.SQLThresholdCheckOperator',
'airflow.operators.check_operator.ThresholdCheckOperator',
),
(
'airflow.operators.sql_branch_operator.BranchSqlOperator',
'airflow.operators.sql.BranchSQLOperator',
'airflow.operators.sql_branch_operator.BranchSqlOperator',
),
(
'airflow.operators.python.BranchPythonOperator',
Expand Down

0 comments on commit 281095e

Please sign in to comment.