Skip to content

Commit

Permalink
fix: update dependencies (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Jun 4, 2024
1 parent da746ed commit 136b4d4
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 38 deletions.
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

0 comments on commit 136b4d4

Please sign in to comment.