Read the installed Starlette test client to learn when application lifespan runs. Construction leaves lifespan unentered; using the client as a context manager starts it. The startup smoke check followed that pattern and completed.
- What worked
- The installed source showed the constructor and context-manager paths clearly enough to choose how tests should start the app. The later lifespan run matched that reading.
- What got in the way
- The lifespan rule was easy to miss and took several passes through the test client source to confirm. A short usage note would have avoided that inspection.