From a09a5a4834a40583a1635d311ebfd87bffae7f44 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Thu, 18 May 2023 11:55:50 +0200 Subject: [PATCH 1/2] Fix client certificate support Fixes: https://github.com/pimutils/vdirsyncer/issues/1069 --- vdirsyncer/storage/dav.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vdirsyncer/storage/dav.py b/vdirsyncer/storage/dav.py index eece4ee47..f3554af1a 100644 --- a/vdirsyncer/storage/dav.py +++ b/vdirsyncer/storage/dav.py @@ -390,6 +390,7 @@ def __init__( ssl = prepare_verify(verify, verify_fingerprint) if ssl: self._settings["ssl"] = ssl + ssl.load_cert_chain(*self._settings["cert"]) self.useragent = useragent self.url = url.rstrip("/") + "/" From 4fb334ad8512f0441266bd2c9a99d69370a537c1 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Mon, 25 Sep 2023 16:23:47 +0200 Subject: [PATCH 2/2] Ignore type checking lines in coverage report --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 314b9ce58..294438ad4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,3 +28,8 @@ addopts = """ [tool.mypy] ignore_missing_imports = true + +[tool.coverage.report] +exclude_lines = [ + "if TYPE_CHECKING:", +]