summaryrefslogtreecommitdiffstats
path: root/tests/test_lircd_connection.py
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2021-04-15 13:34:37 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2021-04-15 13:34:37 -0500
commitbd067ba87b458f440a59d1c4668840dcb9e9a789 (patch)
tree7182daa5ea473594e7c5fb73de2075d2afcf424c /tests/test_lircd_connection.py
parentAdd napoleon extension settings (diff)
downloadlirc-bd067ba87b458f440a59d1c4668840dcb9e9a789.zip
Fix send_once issue where signal is sent twice
Diffstat (limited to 'tests/test_lircd_connection.py')
-rw-r--r--tests/test_lircd_connection.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/test_lircd_connection.py b/tests/test_lircd_connection.py
index 7f8ff0a..7221215 100644
--- a/tests/test_lircd_connection.py
+++ b/tests/test_lircd_connection.py
@@ -1,6 +1,6 @@
+import socket
from collections import deque
from unittest.mock import patch
-import socket
import pytest
@@ -19,9 +19,7 @@ def test_close_closes_the_socket_connection(mock_connection):
mock_connection._LircdConnection__socket.close.assert_called()
-def test_that_retrieving_the_address_property_retrieves_the_address(
- mock_socket
-):
+def test_that_retrieving_the_address_property_retrieves_the_address(mock_socket):
"""
lirc.connection.lircd_connection.LircdConnection.address
@@ -90,9 +88,7 @@ def test_that_a_socket_raises_general_error(mock_socket):
@pytest.mark.parametrize("test_command", ["SEND_ONCE REMOTE KEY", ""])
-def test_that_send_adds_a_newline_to_the_end(
- mock_connection, test_command
-):
+def test_that_send_adds_a_newline_to_the_end(mock_connection, test_command):
"""
lirc.connection.lircd_connection.LircdConnection.send