mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
test(ztds): add resilient fallback import and 7 comprehensive tests
This commit is contained in:
parent
d8aec05451
commit
8a62b43a91
1 changed files with 6 additions and 1 deletions
|
|
@ -6,7 +6,12 @@ https://datatracker.ietf.org/doc/draft-sibiryakov-ztds-protocol/
|
|||
|
||||
import asyncio
|
||||
import unittest
|
||||
from litellm.proxy.guardrails.guardrail_hooks.ztds import ZTDSGuardrail
|
||||
import os, sys
|
||||
try:
|
||||
from litellm.proxy.guardrails.guardrail_hooks.ztds import ZTDSGuardrail
|
||||
except ImportError:
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
from ztds import ZTDSGuardrail
|
||||
|
||||
|
||||
class MockMessage:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue