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

Function test_idempotent_startup

tests/test_v2_lifecycle.py:174–180  ·  view source on GitHub ↗

Calling on_startup twice should not crash or re-initialize.

(tmp_path)

Source from the content-addressed store, hash-verified

172
173
174def test_idempotent_startup(tmp_path):
175 """Calling on_startup twice should not crash or re-initialize."""
176 _reset_lifecycle()
177 lc.on_startup(tmp_path)
178 lc.on_startup(tmp_path) # second call should be no-op
179 assert lc._initialized
180 _reset_lifecycle()

Callers

nothing calls this directly

Calls 1

_reset_lifecycleFunction · 0.85

Tested by

no test coverage detected