diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2025-02-02 10:11:17 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-02-02 10:21:23 +0300 |
commit | 637f8bbf610e99859dfbdbde49d99e9c60a7acf7 (patch) | |
tree | 3e685433e89f53a34ca2a4635c29865598d12b4f /contrib/python/pytest-localserver/py3/pytest_localserver/plugin.py | |
parent | bbd3eacdd0520f608b6290efdd0050d7e55ad40d (diff) | |
download | ydb-637f8bbf610e99859dfbdbde49d99e9c60a7acf7.tar.gz |
Intermediate changes
commit_hash:20c3eb2f2d78b5f654ec928c071692413a1bd96d
Diffstat (limited to 'contrib/python/pytest-localserver/py3/pytest_localserver/plugin.py')
-rw-r--r-- | contrib/python/pytest-localserver/py3/pytest_localserver/plugin.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/python/pytest-localserver/py3/pytest_localserver/plugin.py b/contrib/python/pytest-localserver/py3/pytest_localserver/plugin.py index 1e6ad2f172..501245eccd 100644 --- a/contrib/python/pytest-localserver/py3/pytest_localserver/plugin.py +++ b/contrib/python/pytest-localserver/py3/pytest_localserver/plugin.py @@ -64,8 +64,10 @@ def httpsserver(request): """ from pytest_localserver import https 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) |