mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-01 02:02:20 +00:00
Add proxy types utils module docstring
Co-authored-by: ishaan-berri <ishaan-berri@users.noreply.github.com>
This commit is contained in:
parent
e75c7a312a
commit
7d08c320c5
2 changed files with 10 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
"""Utility helpers for loading proxy type-related instances and annotations."""
|
||||
|
||||
import asyncio
|
||||
import importlib
|
||||
import importlib.util
|
||||
|
|
|
|||
|
|
@ -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/")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue