MCPcopy
hub / github.com/RasaHQ/rasa / test_session_start

Function test_session_start

tests/shared/core/test_trackers.py:452–461  ·  view source on GitHub ↗
(domain: Domain)

Source from the content-addressed store, hash-verified

450
451
452def test_session_start(domain: Domain):
453 tracker = DialogueStateTracker("default", domain.slots)
454 # the retrieved tracker should be empty
455 assert len(tracker.events) == 0
456
457 # add a SessionStarted event
458 tracker.update(SessionStarted())
459
460 # tracker has one event
461 assert len(tracker.events) == 1
462
463
464def test_revert_action_event(domain: Domain):

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
SessionStartedClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…