Skip to content

Commit

Permalink
fix msg in assertion error for busio.SPI.write_readinto() (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 authored Aug 5, 2024
1 parent fb2ea21 commit 1467ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circuitpython_mocks/busio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def write_readinto(
"""A function that mocks :external:py:meth:`busio.SPI.write_readinto()`.
This function checks against `SPITransfer`
:py:attr:`~circuitpython_mocks._mixins.Expecting.expectations`"""
assert self.expectations, "no expectation found for I2C.writeto_then_readfrom()"
assert self.expectations, "no expectation found for SPI.write_readinto()"
op = self.expectations.popleft()
assert isinstance(
op, SPITransfer
Expand Down

0 comments on commit 1467ee5

Please sign in to comment.