import unittest try: from playwright.sync_api import sync_playwright # noqa: F401 import requests # noqa: F401 except ImportError as exc: # pragma: no cover - dependency-gated smoke test sync_playwright = None _IMPORT_ERROR = exc else: _IMPORT_ERROR = None @unittest.skipIf(sync_playwright is None, f"optional smoke test dependency missing: {_IMPORT_ERROR}") class GiantLoginSmokeTest(unittest.TestCase): def test_dependencies_available(self): self.assertIsNotNone(sync_playwright)