MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_on_startup_initializes_all

Function test_on_startup_initializes_all

tests/test_v2_lifecycle.py:19–26  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

17
18
19def test_on_startup_initializes_all(tmp_path):
20 _reset_lifecycle()
21 lc.on_startup(tmp_path)
22 assert lc._metrics is not None
23 assert lc._shadow is not None
24 assert lc._weight_tracker is not None
25 assert lc._initialized
26 _reset_lifecycle()
27
28
29def test_on_shutdown_persists_state(tmp_path):

Callers

nothing calls this directly

Calls 1

_reset_lifecycleFunction · 0.85

Tested by

no test coverage detected