Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests/sensors/test_external_task_sensor.py for database isolation tests #41450

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/sensors/test_external_task_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ def test_catch_invalid_allowed_states(self):
dag=self.dag,
)

@pytest.mark.skip_if_database_isolation_mode # Test is broken in db isolation mode
def test_external_task_sensor_waits_for_task_check_existence(self):
op = ExternalTaskSensor(
task_id="test_external_task_sensor_check",
Expand All @@ -820,6 +821,7 @@ def test_external_task_sensor_waits_for_task_check_existence(self):
with pytest.raises(AirflowException):
op.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE, ignore_ti_state=True)

@pytest.mark.skip_if_database_isolation_mode # Test is broken in db isolation mode
def test_external_task_sensor_waits_for_dag_check_existence(self):
op = ExternalTaskSensor(
task_id="test_external_task_sensor_check",
Expand Down