MCPcopy
hub / github.com/vibrantlabsai/ragas / test_base_event

Function test_base_event

tests/unit/test_analytics.py:42–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def test_base_event():
43 from ragas._analytics import BaseEvent
44
45 be = BaseEvent(event_type="evaluation")
46 assert isinstance(be.model_dump().get("event_type"), str)
47 assert isinstance(be.model_dump().get("user_id"), str)
48
49
50def test_evaluation_event():

Callers

nothing calls this directly

Calls 2

BaseEventClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…