Skip to content

Commit 5f3fc07

Browse files
committed
apply black
1 parent f304d7f commit 5f3fc07

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

tests/test_port_ssl.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ def test_default_port(self) -> None:
4141
ssl_mock.assert_not_called()
4242
connect_mock.assert_called()
4343
# Assuming the repeated calls will have the same arguments.
44-
connect_mock.assert_has_calls(
45-
[call((host, expected_port))]
46-
)
44+
connect_mock.assert_has_calls([call((host, expected_port))])
4745

4846
def test_connect_override(self):
4947
"""Test that connect() can override host and port."""
@@ -62,19 +60,13 @@ def test_connect_override(self):
6260
with self.assertRaises(MQTT.MMQTTException):
6361
expected_host = "127.0.0.2"
6462
expected_port = 1884
65-
self.assertNotEqual(
66-
expected_port, port, "port override should differ"
67-
)
68-
self.assertNotEqual(
69-
expected_host, host, "host override should differ"
70-
)
63+
self.assertNotEqual(expected_port, port, "port override should differ")
64+
self.assertNotEqual(expected_host, host, "host override should differ")
7165
mqtt_client.connect(host=expected_host, port=expected_port)
7266

7367
connect_mock.assert_called()
7468
# Assuming the repeated calls will have the same arguments.
75-
connect_mock.assert_has_calls(
76-
[call((expected_host, expected_port))]
77-
)
69+
connect_mock.assert_has_calls([call((expected_host, expected_port))])
7870

7971
def test_tls_port(self) -> None:
8072
"""verify that when is_ssl=True is set, the default port is 8883

0 commit comments

Comments
 (0)