choo121600 commented on code in PR #59643:
URL: https://github.com/apache/airflow/pull/59643#discussion_r2702174365
##########
airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_connections.py:
##########
@@ -992,14 +992,85 @@ def test_connection_env_is_cleaned_after_run(self,
test_client, body):
{"connection_id": TEST_CONN_ID, "conn_type": "ftp"},
],
)
- def test_should_respond_403_by_default(self, test_client, body):
+
@mock.patch("airflow.api_fastapi.core_api.routes.public.connections.conf.get")
+ def test_should_respond_403_by_default(self, mock_conf_get, test_client,
body):
+ mock_conf_get.return_value = "Disabled"
Review Comment:
I removed the unnecessary mock since the default value is already "Disabled"
:)
--
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]