conftest.py 166 B

1234567891011
  1. import unittest.mock
  2. import pytest
  3. import cc1101
  4. @pytest.fixture
  5. def transceiver():
  6. with unittest.mock.patch("spidev.SpiDev"):
  7. return cc1101.CC1101()