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
30 lines
907 B
Python
30 lines
907 B
Python
"""CLI integration tests for note commands.
|
|
|
|
These tests exercise the full CLI → Client → RPC path using VCR cassettes.
|
|
"""
|
|
|
|
import pytest
|
|
|
|
from notebooklm.notebooklm_cli import cli
|
|
|
|
from .conftest import assert_command_success, notebooklm_vcr, skip_no_cassettes
|
|
|
|
pytestmark = [pytest.mark.vcr, skip_no_cassettes]
|
|
|
|
|
|
class TestNoteCommands:
|
|
"""Test 'notebooklm note' commands."""
|
|
|
|
@pytest.mark.parametrize(
|
|
("cassette", "args"),
|
|
[
|
|
("notes_list.yaml", ["note", "list"]),
|
|
("notes_create.yaml", ["note", "create", "-t", "Test Note", "This is test content."]),
|
|
],
|
|
)
|
|
def test_note_command(self, runner, mock_auth_for_vcr, mock_context, cassette, args):
|
|
"""Note commands work with real client."""
|
|
with notebooklm_vcr.use_cassette(cassette):
|
|
result = runner.invoke(cli, args)
|
|
assert_command_success(result)
|