mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +00:00
test(cli): drop structural StrEnum source check; smoke job covers the 3.10 import
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
0679d799d4
commit
19c43eb875
1 changed files with 0 additions and 7 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import inspect
|
||||
import json
|
||||
import os
|
||||
import stat
|
||||
|
|
@ -8,7 +7,6 @@ from pathlib import Path
|
|||
import pytest
|
||||
import requests
|
||||
|
||||
from litellm.proxy.client.cli.commands import pi
|
||||
from litellm.proxy.client.cli.commands.pi import (
|
||||
ListingFailure,
|
||||
ModelLimits,
|
||||
|
|
@ -22,11 +20,6 @@ from litellm.proxy.client.cli.commands.pi import (
|
|||
)
|
||||
|
||||
|
||||
def test_pi_module_has_no_strenum_import():
|
||||
"""enum.StrEnum is Python 3.11+; pyproject allows 3.10, so pi.py must not import it."""
|
||||
assert "StrEnum" not in inspect.getsource(pi)
|
||||
|
||||
|
||||
def test_listing_failure_is_str_enum():
|
||||
assert issubclass(ListingFailure, str)
|
||||
assert ListingFailure.REJECTED.value == "rejected"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue