Skip to content

Commit

Permalink
mock load_cert_chain
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Dec 2, 2024
1 parent da34f31 commit 1b46974
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kmip/tests/unit/services/server/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def test_start(self,

a_mock = mock.MagicMock()
b_mock = mock.MagicMock()
c_mock = mock.MagicMock()

s = server.KmipServer(
hostname='127.0.0.1',
Expand All @@ -213,6 +214,7 @@ def test_start(self,
with mock.patch('ssl.SSLContext') as ssl_mock:
socket_mock.return_value = a_mock
ssl_mock.return_value.wrap_socket.return_value = b_mock
ssl_mock.return_value.load_cert_chain = c_mock

manager_mock.assert_not_called()
monitor_mock.assert_not_called()
Expand Down

0 comments on commit 1b46974

Please sign in to comment.