potiuk commented on issue #55841:
URL: https://github.com/apache/airflow/issues/55841#issuecomment-3398002314
Possibly something like this? @jscheffl @pierrejeambrun ? (Unless I am
missing something):
```python
try:
importlib.import_module("flask_babel")
except ImportError:
mock.patch.dict(
sys.modules,
{'flask_babel': mock.Mock()},
)
stack.enter_context(mock.patch("flask_babel.lazy_gettext",
mock_lazy_gettext))
```
--
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]