diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-26 18:24:47 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-26 18:24:47 -0500 |
| commit | b6c7abc311b10f5ee675100cb9420f7a83c88812 (patch) | |
| tree | f83e6065c04dda71370805868bea2d53d2674d97 /tests/conftest.py | |
| parent | Simplify `run` section for tests and build steps (diff) | |
| download | lirc-b6c7abc311b10f5ee675100cb9420f7a83c88812.zip | |
Fix conftest and ignore tests
The tests will need to be redone.
Diffstat (limited to 'tests/conftest.py')
| -rw-r--r-- | tests/conftest.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index de842cf..3788b68 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,19 +3,14 @@ from unittest import mock import pytest -from lirc import Lirc +from lirc import Client, LircdConnection @pytest.fixture def mock_socket(): - return mock.Mock(spec=socket.socket) + return mock.MagicMock(spec=socket.socket) @pytest.fixture def mock_lirc(mock_socket): - return Lirc(socket=mock_socket) - - -@pytest.fixture -def mock_lirc_and_socket(mock_lirc): - return (mock_lirc, mock_lirc._Lirc__socket) + return Client(connection=LircdConnection(socket=mock_socket)) |