potiuk commented on code in PR #39055:
URL: https://github.com/apache/airflow/pull/39055#discussion_r1570543905
##########
tests/conftest.py:
##########
@@ -1264,6 +1265,16 @@ def initialize_providers_manager():
ProvidersManager().initialize_providers_configuration()
[email protected](autouse=True)
+def create_swagger_ui_dir_if_missing():
+ """
+ The directory needs to exist to satisfy starlette attempting to register
it as middleware
+ :return:
+ """
+ swagger_ui_dir = AIRFLOW_SOURCES_ROOT_DIR / "airflow" / "www" / "static" /
"dist" / "swagger-ui"
+ swagger_ui_dir.mkdir(exist_ok=True, parents=True)
Review Comment:
Good point.
--
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]