from __future__ import annotations import sys from pathlib import Path ROOT = Path(__file__).resolve().parents[1] ADDON_DIR = ROOT / "addon" if str(ADDON_DIR) not in sys.path: sys.path.insert(0, str(ADDON_DIR)) def test_import_core_modules() -> None: """Ein einfacher Smoke-Test, der sicherstellt, dass Kernmodule importierbar sind. Wichtig: Die Module sind so geschrieben, dass sie auch ohne Kodi-Umgebung (ohne xbmc/xbmcgui) importiert werden koennen. """ import plugin_interface # noqa: F401 import plugin_helpers # noqa: F401 import http_session_pool # noqa: F401 import tmdb # noqa: F401 import metadata_utils # noqa: F401 import resolveurl_backend # noqa: F401