Skip to content

Commit 7fc9bf0

Browse files
Nathanael ShimNathanael Shim
authored andcommitted
resolve tox
1 parent 92d5d61 commit 7fc9bf0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

indico/http/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def _make_request(
145145
f"{self.base_url}{path}",
146146
headers=headers,
147147
stream=True,
148-
verify=self.config.verify_ssl,
148+
verify=False if not self.config.verify_ssl or not self.request_session.verify else True,
149149
**new_kwargs,
150150
)
151151

tests/unit/client/test_client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ def test_client_verify_false_request(indico_request, auth, indico_test_config):
9595

9696

9797
def test_client_requests_params(indico_request, auth, indico_test_config):
98-
client = IndicoClient(indico_test_config)
98+
client = IndicoClient(
99+
IndicoConfig(
100+
requests_params={"verify": False},
101+
host=indico_test_config.host,
102+
protocol=indico_test_config.protocol,
103+
)
104+
)
99105
indico_request(
100106
"post",
101107
"/graph/api/graphql",

0 commit comments

Comments
 (0)