@@ -299,15 +299,15 @@ def test_serialize_session_start(
299299 "line, expected" ,
300300 [
301301 pytest .param (
302- "schema=trades|" "stype_in=instrument_id|" "symbols=1,2,3\n " ,
303- ("trades" , "instrument_id" , "1,2,3" , None ),
302+ "schema=trades|" "stype_in=instrument_id|" "symbols=1,2,3|" "id=23 \n " ,
303+ ("trades" , "instrument_id" , "1,2,3" , None , "23" ),
304304 ),
305305 pytest .param (
306306 "schema=trades|"
307307 "stype_in=instrument_id|"
308308 "symbols=1,2,3|"
309309 "start=1671717080706865759\n " ,
310- ("trades" , "instrument_id" , "1,2,3" , "1671717080706865759" ),
310+ ("trades" , "instrument_id" , "1,2,3" , "1671717080706865759" , None ),
311311 ),
312312 pytest .param (
313313 "schema=trades|" "stype_in=instrument_id|" "symbols=1,2,3" ,
@@ -336,6 +336,7 @@ def test_parse_subscription_request(
336336 msg .stype_in ,
337337 msg .symbols ,
338338 msg .start ,
339+ msg .id ,
339340 ) == expected
340341 else :
341342 with pytest .raises (expected ):
@@ -374,8 +375,13 @@ def test_parse_subscription_request(
374375 symbols = "1234,5678,90" ,
375376 start = None ,
376377 snapshot = 1 ,
378+ id = 5 ,
377379 ),
378- b"schema=mbo|" b"stype_in=instrument_id|" b"symbols=1234,5678,90|" b"snapshot=1\n " ,
380+ b"schema=mbo|"
381+ b"stype_in=instrument_id|"
382+ b"symbols=1234,5678,90|"
383+ b"snapshot=1|"
384+ b"id=5\n " ,
379385 ),
380386 ],
381387)
0 commit comments