| 12345678910111213141516171819202122232425262728293031323334353637 |
- # -*- coding: utf-8 -*-
- """
- Pytest-Konfiguration für Plugin-Tests.
- Diese Datei stellt sicher, dass Plugin-Tests korrekt importiert werden,
- ohne mit dem Hauptverzeichnis tests/ zu kollidieren.
- """
- import sys
- from pathlib import Path
- # Projekt-Root zum Pfad hinzufügen
- PROJECT_ROOT = Path(__file__).parent.parent
- if str(PROJECT_ROOT) not in sys.path:
- sys.path.insert(0, str(PROJECT_ROOT))
- # Importiere alle Fixtures aus der Haupt-conftest.py
- from conftest import (
- event_manager,
- mock_event_manager,
- mock_application,
- mock_plugin_path,
- sample_audio_16khz,
- sample_audio_22khz,
- sample_audio_with_tone,
- default_tts_config,
- default_stt_config,
- plugin_test_helper,
- PluginTestHelper,
- )
- def pytest_configure(config):
- """Registriert zusätzliche Marker für Plugin-Tests."""
- config.addinivalue_line(
- "markers", "plugin: Plugin-spezifische Tests"
- )
|