ashb commented on a change in pull request #8909:
URL: https://github.com/apache/airflow/pull/8909#discussion_r427191367
##########
File path: tests/executors/test_celery_executor.py
##########
@@ -75,6 +75,17 @@ def _prepare_app(broker_url=None, execute=None):
patch_app = mock.patch('airflow.executors.celery_executor.app', test_app)
patch_execute =
mock.patch('airflow.executors.celery_executor.execute_command', test_execute)
+ backend = test_app.backend
+
+ if hasattr(backend, 'ResultSession'):
Review comment:
Yeah, exactly. We only currently test DB backends in our tests, but I
felt better to future proof this for the sake of a single `if`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]