@@ -81,9 +81,7 @@ async def test_final_with_carry_pads_then_emits_terminal_marker(
8181 self , stream : AudioOutputStream , channels : int
8282 ):
8383 stream .send_nowait (
84- AudioOutputChunk (
85- data = make_pcm (5 , fill = 100 , channels = channels ), final = True
86- )
84+ AudioOutputChunk (data = make_pcm (5 , fill = 100 , channels = channels ), final = True )
8785 )
8886 items = stream .peek ()
8987 assert len (items ) == 2
@@ -125,7 +123,9 @@ async def test_final_with_no_carry_emits_chunk_plus_marker(
125123 async def test_carry_is_reset_after_final (
126124 self , stream : AudioOutputStream , channels : int
127125 ):
128- stream .send_nowait (AudioOutputChunk (data = make_pcm (5 , channels = channels ), final = True ))
126+ stream .send_nowait (
127+ AudioOutputChunk (data = make_pcm (5 , channels = channels ), final = True )
128+ )
129129 stream .clear ()
130130 stream .send_nowait (AudioOutputChunk (data = make_pcm (10 , channels = channels )))
131131 assert stream .empty ()
@@ -149,7 +149,9 @@ async def test_final_marker_with_no_data_flushes_pending_carry(
149149 ):
150150 # Build up a sub-20ms carry, then send a data-less final marker
151151 # (as the realtime flow does on RealtimeAudioOutputDone).
152- stream .send_nowait (AudioOutputChunk (data = make_pcm (5 , fill = 42 , channels = channels )))
152+ stream .send_nowait (
153+ AudioOutputChunk (data = make_pcm (5 , fill = 42 , channels = channels ))
154+ )
153155 assert stream .empty () # carry only, nothing emitted yet
154156
155157 signal = AudioOutputChunk (data = None , final = True )
@@ -214,7 +216,9 @@ async def test_buffered_ignores_chunk_with_none_data(
214216 async def test_buffered_after_final_excludes_terminal_marker (
215217 self , stream : AudioOutputStream , channels : int
216218 ):
217- stream .send_nowait (AudioOutputChunk (data = make_pcm (20 , channels = channels ), final = True ))
219+ stream .send_nowait (
220+ AudioOutputChunk (data = make_pcm (20 , channels = channels ), final = True )
221+ )
218222 # Stream now holds the real 20ms chunk plus a zero-sample terminal marker.
219223 assert len (stream .peek ()) == 2
220224 # Only the real chunk contributes to buffered duration.
0 commit comments