@@ -323,7 +323,7 @@ def _handle_at_response(api, tsn, status, at_response=b""):
323323 return response
324324
325325
326- def test_handle_at_response_none (api ):
326+ async def test_handle_at_response_none (api ):
327327 """Test AT successful response with no value."""
328328 tsn = 123
329329 fut = _handle_at_response (api , tsn , 0 )
@@ -332,7 +332,7 @@ def test_handle_at_response_none(api):
332332 assert fut .exception () is None
333333
334334
335- def test_handle_at_response_data (api ):
335+ async def test_handle_at_response_data (api ):
336336 """Test AT successful response with data."""
337337 tsn = 123
338338 status , response = 0 , 0x23
@@ -342,7 +342,7 @@ def test_handle_at_response_data(api):
342342 assert fut .exception () is None
343343
344344
345- def test_handle_at_response_error (api ):
345+ async def test_handle_at_response_error (api ):
346346 """Test AT unsuccessful response."""
347347 tsn = 123
348348 status , response = 1 , 0x23
@@ -351,7 +351,7 @@ def test_handle_at_response_error(api):
351351 assert isinstance (fut .exception (), ATCommandError )
352352
353353
354- def test_handle_at_response_invalid_command (api ):
354+ async def test_handle_at_response_invalid_command (api ):
355355 """Test invalid AT command response."""
356356 tsn = 123
357357 status , response = 2 , 0x23
@@ -360,7 +360,7 @@ def test_handle_at_response_invalid_command(api):
360360 assert isinstance (fut .exception (), InvalidCommand )
361361
362362
363- def test_handle_at_response_undef_error (api ):
363+ async def test_handle_at_response_undef_error (api ):
364364 """Test AT unsuccessful response with undefined error."""
365365 tsn = 123
366366 status , response = 0xEE , 0x23
@@ -482,7 +482,7 @@ def test_handle_tx_status_duplicate(api):
482482 assert send_fut .set_exception .call_count == 0
483483
484484
485- def test_handle_registration_status (api ):
485+ async def test_handle_registration_status (api ):
486486 """Test device registration status."""
487487 frame_id = 0x12
488488 status = xbee_t .RegistrationStatus .SUCCESS
@@ -526,7 +526,7 @@ async def test_command_mode_at_cmd_timeout(api):
526526 assert result is None
527527
528528
529- def test_handle_command_mode_rsp (api ):
529+ async def test_handle_command_mode_rsp (api ):
530530 """Test command mode response."""
531531 api ._cmd_mode_future = None
532532 data = "OK"
0 commit comments