MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / test_record_timestamp

Method test_record_timestamp

tests/unit/test_events.py:13–20  ·  view source on GitHub ↗
(self, mock_req)

Source from the content-addressed store, hash-verified

11 self.event_type = "test_event_type"
12
13 def test_record_timestamp(self, mock_req):
14 agentops.init(api_key=self.api_key)
15
16 event = ActionEvent()
17 time.sleep(0.15)
18 agentops.record(event)
19
20 assert event.init_timestamp != event.end_timestamp
21
22 def test_record_error_event(self, mock_req):
23 agentops.init(api_key=self.api_key)

Callers

nothing calls this directly

Calls 3

ActionEventClass · 0.90
initMethod · 0.80
recordMethod · 0.80

Tested by

no test coverage detected