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

Function _reset_lifecycle

tests/test_v2_lifecycle.py:8–16  ·  view source on GitHub ↗

Reset lifecycle singletons for test isolation.

()

Source from the content-addressed store, hash-verified

6
7
8def _reset_lifecycle():
9 """Reset lifecycle singletons for test isolation."""
10 lc._metrics = None
11 lc._shadow = None
12 lc._weight_tracker = None
13 lc._index_manager = None
14 lc._state_dir = None
15 lc._initialized = False
16 lc._recent_predictions.clear()
17
18
19def test_on_startup_initializes_all(tmp_path):

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected