Skip to content

Commit

Permalink
Try to improve joining test reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Oct 27, 2024
1 parent 7a390ca commit 3b9eff7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/application/test_joining.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ async def test_permit_join_with_key(device, permit_result, make_application, moc
await app.shutdown()


@mock.patch(
"zigpy.device.Device._initialize",
new=zigpy.device.Device._initialize.__wrapped__, # to disable retries
)
@pytest.mark.parametrize("device", FORMED_DEVICES)
async def test_on_zdo_device_join(device, make_application, mocker):
app, znp_server = make_application(server_cls=device)
Expand All @@ -204,6 +208,10 @@ async def test_on_zdo_device_join(device, make_application, mocker):
await app.shutdown()


@mock.patch(
"zigpy.device.Device._initialize",
new=zigpy.device.Device._initialize.__wrapped__, # to disable retries
)
@pytest.mark.parametrize("device", FORMED_DEVICES)
async def test_on_zdo_device_join_and_announce_fast(device, make_application, mocker):
app, znp_server = make_application(server_cls=device)
Expand Down

0 comments on commit 3b9eff7

Please sign in to comment.