Add proxy types utils module docstring

Co-authored-by: ishaan-berri <ishaan-berri@users.noreply.github.com>
This commit is contained in:
oss-agent-shin 2026-05-06 00:58:08 +00:00
parent e75c7a312a
commit 7d08c320c5
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,5 @@
"""Utility helpers for loading proxy type-related instances and annotations."""
import asyncio
import importlib
import importlib.util

View file

@ -1,7 +1,9 @@
import ast
import datetime as real_datetime
import json
import os
import sys
from pathlib import Path
import pytest
from fastapi import HTTPException
@ -20,6 +22,12 @@ from unittest.mock import MagicMock
from litellm.proxy.utils import get_custom_url, join_paths
def test_proxy_types_utils_has_module_docstring():
path = Path("litellm/proxy/types_utils/utils.py")
module = ast.parse(path.read_text())
assert ast.get_docstring(module)
def test_get_custom_url(monkeypatch):
monkeypatch.setenv("SERVER_ROOT_PATH", "/litellm")
custom_url = get_custom_url(request_base_url="http://0.0.0.0:4000", route="ui/")