Skip to content

Commit

Permalink
tests/unit/sensors/test_clickhouse.py: assertRaisesRegexp -> assertRa…
Browse files Browse the repository at this point in the history
…isesRegex

AttributeError: 'ClickHouseSensorTestCase' object has no attribute 'assertRaisesRegexp'
  • Loading branch information
bryzgaloff authored Apr 16, 2024
1 parent d634019 commit fc145d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/sensors/test_clickhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_defaults(self):

def test_failure(self):
is_failure_mock = mock.Mock(return_value=True)
with self.assertRaisesRegexp(AirflowException, 'is_failure returned True'):
with self.assertRaisesRegex(AirflowException, 'is_failure returned True'):
ClickHouseSensor(
task_id='test3', # required by Airflow
sql='SELECT 3',
Expand Down

0 comments on commit fc145d4

Please sign in to comment.