Move the private D-Bus bus, isolated XDG dirs and PATH, fake gio/pactl/
firefox/launcher programs and the real MediaDeckServer into tests/stack.py,
and make test_integration.py use it.
The test bus is started from a configuration without any service
directory, so nothing from the system (portals, kwallet, kdeconnect...) can
ever be activated on it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Real MediaDeckServer under aiohttp.test_utils, private session bus,
isolated XDG dirs and PATH, fake MPRIS player and fake gio/pactl/launcher
programs that log their arguments. Covers authentication, player listing
and control, audio, media listing and path escapes, shell-free opening of
a hostile file name, imported launchers and admin changes pushed to
clients. Verified to fail when the hidden-component check, the token check
or the metadata enrichment is removed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>