18 lines
509 B
Python
18 lines
509 B
Python
import unittest
|
|
|
|
|
|
try:
|
|
import browser_cookie3 # noqa: F401
|
|
from curl_cffi import requests # noqa: F401
|
|
except ImportError as exc: # pragma: no cover - dependency-gated smoke test
|
|
browser_cookie3 = None
|
|
_IMPORT_ERROR = exc
|
|
else:
|
|
_IMPORT_ERROR = None
|
|
|
|
|
|
@unittest.skipIf(browser_cookie3 is None, f"optional smoke test dependency missing: {_IMPORT_ERROR}")
|
|
class CurlCffiSmokeTest(unittest.TestCase):
|
|
def test_dependencies_available(self):
|
|
self.assertIsNotNone(browser_cookie3)
|