Calling on_startup twice should not crash or re-initialize.
(tmp_path)
| 172 | |
| 173 | |
| 174 | def 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() |
nothing calls this directly
no test coverage detected