1 parent 2213a59 commit ec076b3Copy full SHA for ec076b3
1 file changed
tests/test_audio_player.py
@@ -197,8 +197,11 @@ def test_sound_lib_play_creates_stream(self):
197
198
# Verify FileStream was created with correct path
199
mock_stream_module.FileStream.assert_called_once()
200
- call_kwargs = mock_stream_module.FileStream.call_args
201
- assert temp_path in str(call_kwargs)
+ call_args = mock_stream_module.FileStream.call_args
+ # Check if temp_path was passed as positional or keyword arg
202
+ passed_path = call_args.kwargs.get("file") or (call_args.args[0] if call_args.args else None)
203
+ assert passed_path is not None
204
+ assert str(Path(passed_path)) == str(Path(temp_path))
205
206
# Verify play was called
207
mock_file_stream.play.assert_called_once()
0 commit comments