diff --git a/pyproject.toml b/pyproject.toml index 314b9ce5..294438ad 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:", +] diff --git a/vdirsyncer/storage/dav.py b/vdirsyncer/storage/dav.py index eece4ee4..f3554af1 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("/") + "/"