aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/pytest-localserver/py3/patches/01-arcadia.patch
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-02-02 10:11:17 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-02-02 10:21:23 +0300
commit637f8bbf610e99859dfbdbde49d99e9c60a7acf7 (patch)
tree3e685433e89f53a34ca2a4635c29865598d12b4f /contrib/python/pytest-localserver/py3/patches/01-arcadia.patch
parentbbd3eacdd0520f608b6290efdd0050d7e55ad40d (diff)
downloadydb-637f8bbf610e99859dfbdbde49d99e9c60a7acf7.tar.gz
Intermediate changes
commit_hash:20c3eb2f2d78b5f654ec928c071692413a1bd96d
Diffstat (limited to 'contrib/python/pytest-localserver/py3/patches/01-arcadia.patch')
-rw-r--r--contrib/python/pytest-localserver/py3/patches/01-arcadia.patch10
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/python/pytest-localserver/py3/patches/01-arcadia.patch b/contrib/python/pytest-localserver/py3/patches/01-arcadia.patch
index a89510c6ef..d704d63629 100644
--- a/contrib/python/pytest-localserver/py3/patches/01-arcadia.patch
+++ b/contrib/python/pytest-localserver/py3/patches/01-arcadia.patch
@@ -1,8 +1,8 @@
--- contrib/python/pytest-localserver/py3/pytest_localserver/https.py (index)
+++ contrib/python/pytest-localserver/py3/pytest_localserver/https.py (working tree)
@@ -10,1 +10,1 @@ import os.path
--DEFAULT_CERTIFICATE = os.path.join(os.path.abspath(os.path.dirname(__file__)), "server.pem")
-+DEFAULT_CERTIFICATE = os.path.join(os.getcwd(), "server.pem")
+-_ROOT = os.path.abspath(os.path.dirname(__file__))
++_ROOT = os.getcwd()
--- contrib/python/pytest-localserver/py3/pytest_localserver/plugin.py (index)
+++ contrib/python/pytest-localserver/py3/pytest_localserver/plugin.py (working tree)
@@ -4,6 +4,9 @@
@@ -15,7 +15,7 @@
import pytest
-@@ -62,11 +65,15 @@ def httpsserver(request):
+@@ -62,11 +65,17 @@ def httpsserver(request):
SSL encryption.
"""
from pytest_localserver import https
@@ -25,8 +25,10 @@
- request.addfinalizer(server.stop)
- return server
+ try:
++ with open(https.DEFAULT_KEY, 'wb') as f:
++ f.write(pkgutil.get_data('pytest_localserver', 'server.key'))
+ with open(https.DEFAULT_CERTIFICATE, 'wb') as f:
-+ f.write(pkgutil.get_data('pytest_localserver', 'server.pem'))
++ f.write(pkgutil.get_data('pytest_localserver', 'cert.crt'))
+ server = https.SecureContentServer()
+ server.start()
+ request.addfinalizer(server.stop)