This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new f1ac27af8b5 Fix pytest in Yandexcloud if 0.384.0 (#64696)
f1ac27af8b5 is described below

commit f1ac27af8b53e7d3ca7ff710c4f4413599bd1535
Author: Jens Scheffler <[email protected]>
AuthorDate: Sat Apr 4 00:52:49 2026 +0200

    Fix pytest in Yandexcloud if 0.384.0 (#64696)
    
    * Fix pytest in Yandexcloud if 0.384.0
    
    * Fix pytests v2
---
 providers/yandex/tests/unit/yandex/hooks/test_yandex.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/providers/yandex/tests/unit/yandex/hooks/test_yandex.py 
b/providers/yandex/tests/unit/yandex/hooks/test_yandex.py
index 545a8bdcb07..93f0fd9afe3 100644
--- a/providers/yandex/tests/unit/yandex/hooks/test_yandex.py
+++ b/providers/yandex/tests/unit/yandex/hooks/test_yandex.py
@@ -63,7 +63,7 @@ class TestYandexHook:
 
         with conf_vars({("yandex", "sdk_user_agent_prefix"): sdk_prefix}):
             hook = YandexCloudBaseHook()
-            assert hook.sdk._channels._client_user_agent.startswith(sdk_prefix)
+            assert sdk_prefix in str(hook.sdk._channels.channel_options)
 
     @mock.patch(f"{BASEHOOK_PATCH_PATH}.get_connection")
     @mock.patch("airflow.providers.yandex.utils.credentials.get_credentials")

Reply via email to