From bd067ba87b458f440a59d1c4668840dcb9e9a789 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Thu, 15 Apr 2021 13:34:37 -0500 Subject: Fix send_once issue where signal is sent twice --- tests/test_lircd_connection.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tests/test_lircd_connection.py') 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 -- cgit v1.2.3