def test_stream_logs_without_generator(mock_container, mock_log_fn):
    """Test that _stream_logs handles missing log generator gracefully."""
    streamer = LogStreamer(mock_container, mock_log_fn)
    streamer.log_generator = None
    streamer._stream_logs()
    mock_log_fn.assert_called_with('error', 'Log generator not initialized')
Test that _stream_logs handles missing log generator gracefully.
tests/unit/test_log_streamer.py