2bndy5 / CircuitPython-mocks

A library of mock data structures for soft testing CircuitPython-based projects
https://circuitpython-mocks.rtfd.io/
MIT License
1 stars 1 forks source link

add `I2CScan` operation #12

Closed 2bndy5 closed 2 months ago

2bndy5 commented 2 months ago

Currently, there's no way to manipulate the I2C.scan() results without using pytest.MonkeyPatch fixture. It would be more convenient to provide a new operation in expectations that returns a mocked result for I2c.scan() calls.