Skip to content

Commit

Permalink
Patch the default pin factory in test_connect
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Oct 25, 2024
1 parent ce8dd7b commit 294c1a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def gw():
("/dev/null", "pizigate:/dev/ttyAMA0"),
)
async def test_connect(port, monkeypatch):
monkeypatch.setattr(gpiozero.Device, "_default_pin_factory", MagicMock())

api = MagicMock()

async def mock_conn(loop, protocol_factory, url, **kwargs):
Expand Down

0 comments on commit 294c1a1

Please sign in to comment.