mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 17:05:43 +00:00
914844122c
* always use fastuuid * rm from proxy extras since its now default * poetry lock
15 lines
420 B
Python
15 lines
420 B
Python
import importlib
|
|
|
|
|
|
def test_uses_fastuuid_and_uuid4_works():
|
|
mod = importlib.import_module("litellm._uuid")
|
|
fastuuid_mod = importlib.import_module("fastuuid")
|
|
assert hasattr(mod, "uuid4")
|
|
assert hasattr(mod, "uuid")
|
|
assert mod.uuid is fastuuid_mod
|
|
|
|
# Ensure uuid4 returns something that looks like a UUID string
|
|
val = str(mod.uuid4())
|
|
assert isinstance(val, str)
|
|
assert len(val) >= 8
|