Skip to content

Commit

Permalink
fix serial mock
Browse files Browse the repository at this point in the history
  • Loading branch information
DamKast committed Jun 25, 2024
1 parent 2c72e62 commit 58075a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def passthrough_serial_conn(
return fut

mocker.patch(
"serial_asyncio.create_serial_connection",
"zigpy.serial.pyserial_asyncio.create_serial_connection",
new=passthrough_serial_conn
)

Expand Down
3 changes: 2 additions & 1 deletion tests/test_uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def create_serial_conn(loop, protocol_factory, url, *args, **kwargs):
return fut

mocker.patch(
"serial_asyncio.create_serial_connection", new=create_serial_conn
"zigpy.serial.pyserial_asyncio.create_serial_connection",
new=create_serial_conn
)

return device, serial_interface
Expand Down

0 comments on commit 58075a0

Please sign in to comment.