@@ -39,8 +39,8 @@ def test_play_with_offsets():
3939 p_obj = p ()
4040 produce_batch_call = p_obj .produce_batch .call_args .args
4141 assert dest_topic == produce_batch_call [0 ]
42- assert {' key' : message_1_key , ' value' : message_1_val } in produce_batch_call [1 ]
43- assert {' key' : message_2_key , ' value' : message_2_val } in produce_batch_call [1 ]
42+ assert {" key" : message_1_key , " value" : message_1_val } in produce_batch_call [1 ]
43+ assert {" key" : message_2_key , " value" : message_2_val } in produce_batch_call [1 ]
4444
4545
4646def test_play_with_timestamps ():
@@ -66,7 +66,7 @@ def test_play_with_timestamps():
6666 consumer_obj = c ()
6767 consumer_obj .offsets_for_times .side_effect = [
6868 [TopicPartition (src_topic , partition = 0 , offset = 2 )],
69- [TopicPartition (src_topic , partition = 0 , offset = 3 )]
69+ [TopicPartition (src_topic , partition = 0 , offset = 3 )],
7070 ]
7171 consumer_obj .consume .return_value = [message_1 , message_2 ]
7272
@@ -80,8 +80,8 @@ def test_play_with_timestamps():
8080 p_obj = p ()
8181 produce_batch_call = p_obj .produce_batch .call_args .args
8282 assert dest_topic == produce_batch_call [0 ]
83- assert {' key' : message_1_key , ' value' : message_1_val } in produce_batch_call [1 ]
84- assert {' key' : message_2_key , ' value' : message_2_val } in produce_batch_call [1 ]
83+ assert {" key" : message_1_key , " value" : message_1_val } in produce_batch_call [1 ]
84+ assert {" key" : message_2_key , " value" : message_2_val } in produce_batch_call [1 ]
8585
8686
8787def test_play_with_exception_when_consuming_consumer_still_closed ():
0 commit comments