@@ -230,13 +230,13 @@ def test_need_rejoin(coordinator):
230
230
def test_refresh_committed_offsets_if_needed (mocker , coordinator ):
231
231
mocker .patch .object (ConsumerCoordinator , 'fetch_committed_offsets' ,
232
232
return_value = {
233
- TopicPartition ('foobar' , 0 ): OffsetAndMetadata (123 , b '' , - 1 ),
234
- TopicPartition ('foobar' , 1 ): OffsetAndMetadata (234 , b '' , - 1 )})
233
+ TopicPartition ('foobar' , 0 ): OffsetAndMetadata (123 , '' , - 1 ),
234
+ TopicPartition ('foobar' , 1 ): OffsetAndMetadata (234 , '' , - 1 )})
235
235
coordinator ._subscription .assign_from_user ([TopicPartition ('foobar' , 0 )])
236
236
assert coordinator ._subscription .needs_fetch_committed_offsets is True
237
237
coordinator .refresh_committed_offsets_if_needed ()
238
238
assignment = coordinator ._subscription .assignment
239
- assert assignment [TopicPartition ('foobar' , 0 )].committed == OffsetAndMetadata (123 , b '' , - 1 )
239
+ assert assignment [TopicPartition ('foobar' , 0 )].committed == OffsetAndMetadata (123 , '' , - 1 )
240
240
assert TopicPartition ('foobar' , 1 ) not in assignment
241
241
assert coordinator ._subscription .needs_fetch_committed_offsets is False
242
242
@@ -303,8 +303,8 @@ def test_close(mocker, coordinator):
303
303
@pytest .fixture
304
304
def offsets ():
305
305
return {
306
- TopicPartition ('foobar' , 0 ): OffsetAndMetadata (123 , b '' , - 1 ),
307
- TopicPartition ('foobar' , 1 ): OffsetAndMetadata (234 , b '' , - 1 ),
306
+ TopicPartition ('foobar' , 0 ): OffsetAndMetadata (123 , '' , - 1 ),
307
+ TopicPartition ('foobar' , 1 ): OffsetAndMetadata (234 , '' , - 1 ),
308
308
}
309
309
310
310
0 commit comments