Skip to content

Commit

Permalink
Update test_client_fingerprint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Jan 20, 2024
1 parent 045ec4b commit 47ed9fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_client_fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_fingerprint_check_no_ssl() -> None:

def test__merge_ssl_params_verify_ssl() -> None:
with pytest.warns(DeprecationWarning):
assert _merge_ssl_params(None, False, None, None) is False
assert _merge_ssl_params(True, False, None, None) is False


def test__merge_ssl_params_verify_ssl_conflict() -> None:
Expand All @@ -50,7 +50,7 @@ def test__merge_ssl_params_verify_ssl_conflict() -> None:
def test__merge_ssl_params_ssl_context() -> None:
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
with pytest.warns(DeprecationWarning):
assert _merge_ssl_params(None, None, ctx, None) is ctx
assert _merge_ssl_params(True, None, ctx, None) is ctx


def test__merge_ssl_params_ssl_context_conflict() -> None:
Expand All @@ -64,7 +64,7 @@ def test__merge_ssl_params_ssl_context_conflict() -> None:
def test__merge_ssl_params_fingerprint() -> None:
digest = hashlib.sha256(b"123").digest()
with pytest.warns(DeprecationWarning):
ret = _merge_ssl_params(None, None, None, digest)
ret = _merge_ssl_params(True, None, None, digest)
assert ret.fingerprint == digest


Expand Down

0 comments on commit 47ed9fe

Please sign in to comment.