Skip to content

Commit

Permalink
QA: Update tests to mock smbus2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Oct 30, 2023
1 parent 9682c96 commit 96c5fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Expand Up @@ -46,9 +46,9 @@ def smbus():
"""Mock smbus module."""
smbus = mock.MagicMock()
smbus.SMBus = _SMBusFakeDevice
sys.modules['smbus'] = smbus
sys.modules['smbus2'] = smbus
yield smbus
del sys.modules['smbus']
del sys.modules['smbus2']


@pytest.fixture(scope='function', autouse=False)
Expand Down

0 comments on commit 96c5fb6

Please sign in to comment.