Skip to content

Commit 1467ee5

Browse files
authored
fix msg in assertion error for busio.SPI.write_readinto() (#3)
1 parent fb2ea21 commit 1467ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circuitpython_mocks/busio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def write_readinto(
170170
"""A function that mocks :external:py:meth:`busio.SPI.write_readinto()`.
171171
This function checks against `SPITransfer`
172172
:py:attr:`~circuitpython_mocks._mixins.Expecting.expectations`"""
173-
assert self.expectations, "no expectation found for I2C.writeto_then_readfrom()"
173+
assert self.expectations, "no expectation found for SPI.write_readinto()"
174174
op = self.expectations.popleft()
175175
assert isinstance(
176176
op, SPITransfer

0 commit comments

Comments
 (0)