Skip to content

Commit

Permalink
test_tls: Explicitly use all available ciphers
Browse files Browse the repository at this point in the history
  • Loading branch information
Synss committed Mar 12, 2021
1 parent 3d88536 commit 65a5caa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,9 @@ def proto(self):
def version(self):
raise NotImplementedError

@pytest.fixture(scope="class")
def ciphers(self):
return None
@pytest.fixture(scope="class", params=[None])
def ciphers(self, request):
return request.param

@pytest.fixture(scope="class")
def srv_hostname(self):
Expand Down Expand Up @@ -921,6 +921,7 @@ def step(self, request):
return request.param

@pytest.mark.usefixtures("server")
@pytest.mark.parametrize("ciphers", (ciphers_available(),), indirect=True)
def test_client_server(self, client, buffer, step):
block(client.socket.do_handshake)
received = bytearray()
Expand All @@ -937,6 +938,7 @@ def step(self, request):
return request.param

@pytest.mark.usefixtures("server")
@pytest.mark.parametrize("ciphers", (ciphers_available(),), indirect=True)
def test_client_server(self, client, buffer, step):
block(client.socket.do_handshake)
received = bytearray()
Expand Down

0 comments on commit 65a5caa

Please sign in to comment.