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
22 lines
710 B
Python
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
|