def test_numbered_list_context_formatting(self, mock_search_results):
        """Test numbered list formatting of context."""
        # Function to format context as a numbered list
        def format_context_numbered_list(search_results):
            context_items = []
            for i, result in enumerate(search_results["chunk_search_results"]):
                context_items.append(f"{i+1}. {result['text']}")

            return "\n".join(context_items)

        # Format context
        context = format_context_numbered_list(mock_search_results)

        # Check formatting
        assert "1. " in context
        assert "2. " in context
        assert "3. " in context
        assert "4. " in context
        assert "5. " in context
Test numbered list formatting of context.
py/tests/unit/retrieval/test_rag_processing.py