Skip to content

Commit c479ade

Browse files
authored
Release 1.0.9 (#31)
* Formatting * Update setup.py fix RST on pypi
1 parent 364b200 commit c479ade

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77

88
setuptools.setup(
99
name="doipclient",
10-
version="1.0.8",
10+
version="1.0.9",
1111
description="A Diagnostic over IP (DoIP) client implementing ISO-13400-2.",
1212
long_description=long_description,
13+
long_description_content_type='text/x-rst',
1314
author="Jacob Schaer",
1415
url="https://github.com/jacobschaer/python-doipclient",
1516
packages=setuptools.find_packages(),

tests/test_client.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,10 @@ def test_await_ipv4(mock_socket):
644644

645645

646646
def test_exception_from_blocking_ssl_socket(mock_socket, mocker):
647-
"""SSL sockets behave slightly different than regular sockets in
648-
non-blocking mode. They won't raise BlockingIOError but SSLWantWriteError
647+
"""SSL sockets behave slightly different than regular sockets in
648+
non-blocking mode. They won't raise BlockingIOError but SSLWantWriteError
649649
or SSLWantReadError instead.
650-
650+
651651
See: https://docs.python.org/3/library/ssl.html#notes-on-non-blocking-sockets
652652
"""
653653
sut = DoIPClient(test_ip, test_logical_address)
@@ -664,13 +664,17 @@ def test_exception_from_blocking_ssl_socket(mock_socket, mocker):
664664
def test_use_secure_uses_default_ssl_context(mock_socket, mocker):
665665
"""Wrap socket with default SSL-context when use_secure=True"""
666666
mocked_context = mocker.patch.object(ssl, "SSLContext", autospec=True)
667-
sut = DoIPClient(test_ip, test_logical_address, use_secure=True, activation_type=None)
667+
sut = DoIPClient(
668+
test_ip, test_logical_address, use_secure=True, activation_type=None
669+
)
668670
mocked_wrap_socket = mocked_context.return_value.wrap_socket
669671
mocked_wrap_socket.assert_called_once_with(mock_socket)
670672

671673

672674
def test_use_secure_with_external_ssl_context(mock_socket, mocker):
673675
"""Wrap socket with user provided SSL-context when use_secure=ssl_context"""
674676
mocked_context = mocker.patch.object(ssl, "SSLContext", autospec=True)
675-
sut = DoIPClient(test_ip, test_logical_address, use_secure=mocked_context, activation_type=None)
677+
sut = DoIPClient(
678+
test_ip, test_logical_address, use_secure=mocked_context, activation_type=None
679+
)
676680
mocked_context.wrap_socket.assert_called_once_with(mock_socket)

0 commit comments

Comments
 (0)