Files
teng-lin--notebooklm-py/tests/integration/_vcr_helpers.py
T
wehub-resource-sync 09e9f3545f
Test / Code Quality (push) Has been cancelled
Test / Test (macos-latest, Python 3.10) (push) Has been cancelled
Test / Test (macos-latest, Python 3.11) (push) Has been cancelled
Test / Test (macos-latest, Python 3.12) (push) Has been cancelled
Test / Test (macos-latest, Python 3.13) (push) Has been cancelled
Test / Test (macos-latest, Python 3.14) (push) Has been cancelled
Test / Test (ubuntu-latest, Python 3.10) (push) Has been cancelled
Test / Test (ubuntu-latest, Python 3.11) (push) Has been cancelled
Test / Test (ubuntu-latest, Python 3.12) (push) Has been cancelled
Test / Test (ubuntu-latest, Python 3.13) (push) Has been cancelled
Test / Test (ubuntu-latest, Python 3.14) (push) Has been cancelled
Test / Test (windows-latest, Python 3.10) (push) Has been cancelled
Test / Test (windows-latest, Python 3.11) (push) Has been cancelled
Test / Test (windows-latest, Python 3.12) (push) Has been cancelled
Test / Test (windows-latest, Python 3.13) (push) Has been cancelled
Test / Test (windows-latest, Python 3.14) (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
dependency-audit / pip-audit (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:30:13 +08:00

22 lines
710 B
Python

"""Shared VCR-replay client helper for the golden decoded-row modules.
Used by ``test_golden_decoded_vcr.py`` and ``test_golden_decoded_vcr_expansion.py``
(extracted, like ``_golden_assert.py``, so the two modules don't cross-import —
see the ``tests/_guardrails/test_no_cross_test_imports.py`` gate).
"""
from __future__ import annotations
from contextlib import asynccontextmanager
from notebooklm import NotebookLMClient
from tests.integration.conftest import get_vcr_auth
@asynccontextmanager
async def vcr_client():
"""Authenticated client bound to VCR replay (mock auth in replay mode)."""
auth = await get_vcr_auth()
async with NotebookLMClient(auth) as client:
yield client