"""Test session setup for the Qt brand kit.

Force the offscreen Qt platform so the pytest-qt suite runs headless
in CI (and any display-less environment) — set before PySide6 is
imported by any test. The generated ``.woodpecker.yml`` additionally
apt-installs the Qt runtime libraries (``[tool.mgf-fed] apt_packages``).
"""

from __future__ import annotations

import os

os.environ.setdefault("QT_QPA_PLATFORM", "offscreen")
