mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-13 11:52:45 +02:00
Move the in-process startup-state singleton out of app.main into app.api.startup_status so app.system can read it without a circular import. No behavior change - main mutates the same shared object. Also lands the design spec and implementation plan for the system/health endpoint work (#145). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
6 lines
255 B
Python
6 lines
255 B
Python
def test_main_uses_the_shared_singleton():
|
|
import app.main as main
|
|
from app.api.startup_status import api_startup_status
|
|
|
|
# main must read/mutate the exact same object, not its own copy
|
|
assert main.api_startup_status is api_startup_status
|