@@ -427,7 +427,6 @@ def test_send_message_configuration_conversion():
427427 v10_expected = pb2_v10 .SendMessageConfiguration (
428428 accepted_output_modes = ['text/plain' , 'application/json' ],
429429 history_length = 10 ,
430- blocking = True ,
431430 task_push_notification_config = pb2_v10 .TaskPushNotificationConfig (
432431 url = 'http://test' ,
433432 authentication = pb2_v10 .AuthenticationInfo (scheme = 'Basic' ),
@@ -443,7 +442,7 @@ def test_send_message_configuration_conversion():
443442
444443def test_send_message_configuration_conversion_minimal ():
445444 v03_config = types_v03 .MessageSendConfiguration ()
446- v10_expected = pb2_v10 .SendMessageConfiguration (blocking = True )
445+ v10_expected = pb2_v10 .SendMessageConfiguration ()
447446
448447 v10_config = to_core_send_message_configuration (v03_config )
449448 assert v10_config == v10_expected
@@ -1306,9 +1305,7 @@ def test_send_message_request_conversion():
13061305 role = pb2_v10 .Role .ROLE_USER ,
13071306 parts = [pb2_v10 .Part (text = 'Hi' )],
13081307 ),
1309- configuration = pb2_v10 .SendMessageConfiguration (
1310- history_length = 5 , blocking = True
1311- ),
1308+ configuration = pb2_v10 .SendMessageConfiguration (history_length = 5 ),
13121309 )
13131310 ParseDict ({'k' : 'v' }, v10_expected .metadata )
13141311
@@ -1767,8 +1764,7 @@ def test_to_core_send_message_request_no_configuration():
17671764 ),
17681765 )
17691766 core_req = to_core_send_message_request (v03_req )
1770- # Default is True if configuration is absent
1771- assert core_req .configuration .blocking is True
1767+ assert not core_req .HasField ('configuration' )
17721768 assert not core_req .HasField ('message' )
17731769
17741770
0 commit comments