forked from retoor/devplacepy
The test fixture `app_server` in `tests/conftest.py` was updated to improve debugging of server startup failures. The startup timeout was extended from 20 to 30 seconds, and the server process stderr is now captured via `subprocess.PIPE` instead of being discarded. When the server fails to start or dies prematurely, the captured stderr output (up to 2000 characters) is included in the raised `RuntimeError` to aid diagnosis. Additionally, `PYTHONUNBUFFERED=1` is set in the environment and the uvicorn log level is set to `debug` for more verbose output.