forked from phoenix/litellm-mirror
ci(conftest.py): reset conftest.py for local_testing/ (#6657)
* ci(conftest.py): reset conftest.py for local_testing/ check if that speeds up testing * fix: fix import * fix(conftest.py): fix import to check if hasattr * fix(conftest.py): ignore proxy reload if doesn't exist
This commit is contained in:
parent
896e2c2d59
commit
9f2053e4af
1 changed files with 3 additions and 0 deletions
|
@ -26,8 +26,11 @@ def setup_and_teardown():
|
||||||
from litellm import Router
|
from litellm import Router
|
||||||
|
|
||||||
importlib.reload(litellm)
|
importlib.reload(litellm)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if hasattr(litellm, "proxy") and hasattr(litellm.proxy, "proxy_server"):
|
if hasattr(litellm, "proxy") and hasattr(litellm.proxy, "proxy_server"):
|
||||||
|
import litellm.proxy.proxy_server
|
||||||
|
|
||||||
importlib.reload(litellm.proxy.proxy_server)
|
importlib.reload(litellm.proxy.proxy_server)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error reloading litellm.proxy.proxy_server: {e}")
|
print(f"Error reloading litellm.proxy.proxy_server: {e}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue