diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-07 03:17:20 +0000 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-07 03:17:20 +0000 |
| commit | f4d7be2b1d325a44919fbd20579c7eae625c0692 (patch) | |
| tree | 5fb728e9af241ba00d50b0b9e5d26fc9a177ade9 /tests/conftest.py | |
| download | lirc-f4d7be2b1d325a44919fbd20579c7eae625c0692.zip | |
Initial Commit
Diffstat (limited to 'tests/conftest.py')
| -rw-r--r-- | tests/conftest.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..01e2460 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,16 @@ +import socket +from unittest import mock + +import pytest + +from lirc import Lirc + + +@pytest.fixture +def mock_socket(): + return mock.Mock(spec=socket.socket) + + +@pytest.fixture +def mock_lirc(mock_socket): + return Lirc(socket=mock_socket) |