Files
pygame-physics-opus5.5/tests/conftest.py
T
2026-09-24 15:45:31 +02:00

13 lines
449 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""Gemeinsame pytest-Konfiguration.
Die Umgebungsvariablen müssen gesetzt sein, *bevor* irgendein Test pygame importiert:
Mit dem Dummy-Treiber öffnet SDL kein echtes Fenster und braucht keine Soundkarte – so
laufen UI- und Integrationstests auch headless (z. B. in CI).
"""
import os
os.environ.setdefault("SDL_VIDEODRIVER", "dummy")
os.environ.setdefault("SDL_AUDIODRIVER", "dummy")
os.environ.setdefault("PYGAME_HIDE_SUPPORT_PROMPT", "1")