Skip to content

Commit 08e9401

Browse files
committed
Migrate test_http and fix some test_cursor
1 parent 010fcfa commit 08e9401

File tree

4 files changed

+180
-205
lines changed

4 files changed

+180
-205
lines changed

src/crate/client/http.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,10 @@ def _pool_kw_args(
326326
return kw
327327

328328

329-
def _remove_certs_for_non_https(server, kwargs):
329+
def _remove_certs_for_non_https(server: str, kwargs: dict) -> dict:
330+
"""
331+
Removes certificates for http requests.
332+
"""
330333
if server.lower().startswith("https"):
331334
return kwargs
332335
used_ssl_args = SSL_ONLY_ARGS & set(kwargs.keys())

tests/client/test_cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import datetime
2323
from ipaddress import IPv4Address
24-
from unittest import TestCase, mock
24+
from unittest import mock
2525
import pytest
2626

2727
from crate.client.exceptions import ProgrammingError

0 commit comments

Comments
 (0)