Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update dependencies #122

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 48 additions & 35 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test = [
"pytest-httpserver>=1.0.4",
"flask>=2.1.2",
"requests-wsgi-adapter>=0.4.1",
"trustme>=0.9.0",
"trustme>=0.9.0; python_version < \"3.13\"",
"pytest-mock>=3.12.0",
]
doc = [
Expand Down
8 changes: 6 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from __future__ import annotations

import os
import sys
from ssl import SSLContext
from typing import TYPE_CHECKING

import flask
import pytest
import trustme
from httpx import WSGITransport
from wsgiadapter import WSGIAdapter as _WSGIAdapter

Expand All @@ -33,12 +33,16 @@ class InsecureWSGIAdapter(InsecureMixin, WSGIAdapter):

@pytest.fixture(scope="session")
def custom_certificate_authority():
if sys.version_info >= (3, 13):
pytest.skip("trustme is not compatible with Python 3.13")
import trustme

return trustme.CA()


@pytest.fixture(scope="session")
def self_signed_server_cert(httpserver_listen_address, custom_certificate_authority):
server, port = httpserver_listen_address
server, _ = httpserver_listen_address
return custom_certificate_authority.issue_cert(server)


Expand Down