repo_id
stringclasses
400 values
commit_sha
stringclasses
400 values
commit_index
int32
0
951
in_repo_split
stringclasses
1 value
cross_repo_split
stringclasses
1 value
test_file
stringlengths
7
121
test_function
stringlengths
1
108
assertion_type
stringclasses
32 values
difficulty
stringclasses
8 values
context_lines
int32
3
600
prefix
large_stringlengths
44
113k
target
large_stringlengths
1
498
anchor_sha
stringclasses
400 values
anchor_index
int32
0
951
qna_source
stringclasses
1 value
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notes.py
test_update_content
assert
func_call
24
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.notes import ( list_notes, create_note, update_note, delete_note, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestUpdateNote: def test...
result["message"].lower()
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_conversation.py
test_parse_query_response_handles_empty
assert
string_literal
16
import pytest from unittest.mock import patch from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.conversation import ConversationMixin class TestConversationMixinMethods: def test_parse_query_response_handles_empty(self): """Test that _parse_query_response handles empty input.""...
""
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_download.py
test_extract_cell_text_handles_none
assert
string_literal
12
import pytest from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.download import DownloadMixin class TestDownloadMixinMethods: def test_extract_cell_text_handles_none(self): """Test that _extract_cell_text handles None input.""" result = DownloadMixin._extract_cell_text(...
""
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_downloads.py
test_report_extension
assert
string_literal
34
import pytest from unittest.mock import MagicMock, AsyncMock from notebooklm_tools.services.downloads import ( validate_artifact_type, validate_output_format, get_default_extension, download_sync, download_async, VALID_ARTIFACT_TYPES, VALID_OUTPUT_FORMATS, ) from notebooklm_tools.services.e...
"md"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sources.py
test_returns_categorized_sources
assert
string_literal
48
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.sources import ( validate_source_type, resolve_drive_mime_type, add_source, list_drive_sources, sync_drive_sources, delete_source, describe_source, get_source_content, VALID_SOURCE_TYPES, ) from noteboo...
"s2"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_downloads.py
test_audio_extension
assert
string_literal
34
import pytest from unittest.mock import MagicMock, AsyncMock from notebooklm_tools.services.downloads import ( validate_artifact_type, validate_output_format, get_default_extension, download_sync, download_async, VALID_ARTIFACT_TYPES, VALID_OUTPUT_FORMATS, ) from notebooklm_tools.services.e...
"m4a"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_research.py
test_successful_start
assert
string_literal
27
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.research import ( start_research, poll_research, import_research, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestStartResearch: def test_...
"web"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sources.py
test_add_url_source
assert
string_literal
46
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.sources import ( validate_source_type, resolve_drive_mime_type, add_source, list_drive_sources, sync_drive_sources, delete_source, describe_source, get_source_content, VALID_SOURCE_TYPES, ) from noteboo...
"url"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_downloads.py
test_quiz_default_json
assert
string_literal
34
import pytest from unittest.mock import MagicMock, AsyncMock from notebooklm_tools.services.downloads import ( validate_artifact_type, validate_output_format, get_default_extension, download_sync, download_async, VALID_ARTIFACT_TYPES, VALID_OUTPUT_FORMATS, ) from notebooklm_tools.services.e...
"json"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_downloads.py
test_quiz_html
assert
string_literal
34
import pytest from unittest.mock import MagicMock, AsyncMock from notebooklm_tools.services.downloads import ( validate_artifact_type, validate_output_format, get_default_extension, download_sync, download_async, VALID_ARTIFACT_TYPES, VALID_OUTPUT_FORMATS, ) from notebooklm_tools.services.e...
"html"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_exports.py
test_export_type_case_insensitive
assert
string_literal
26
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.exports import export_artifact, ExportResult from notebooklm_tools.services.errors import ValidationError, ExportError def mock_client(): """Create a mock NotebookLMClient.""" return MagicMock() class TestExportArtifactValidatio...
"docs"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_research.py
test_successful_start
assert
string_literal
28
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.research import ( start_research, poll_research, import_research, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestStartResearch: def test_...
"fast"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sources.py
test_add_text_source
assert
string_literal
46
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.sources import ( validate_source_type, resolve_drive_mime_type, add_source, list_drive_sources, sync_drive_sources, delete_source, describe_source, get_source_content, VALID_SOURCE_TYPES, ) from noteboo...
"text"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sources.py
test_add_file_source
assert
string_literal
46
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.sources import ( validate_source_type, resolve_drive_mime_type, add_source, list_drive_sources, sync_drive_sources, delete_source, describe_source, get_source_content, VALID_SOURCE_TYPES, ) from noteboo...
"file"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sources.py
test_sync_partial_failure
assert
string_literal
49
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.sources import ( validate_source_type, resolve_drive_mime_type, add_source, list_drive_sources, sync_drive_sources, delete_source, describe_source, get_source_content, VALID_SOURCE_TYPES, ) from noteboo...
"fail"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_quiz
assert
string_literal
60
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"quiz"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_mind_map
assert
string_literal
61
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"mm-1"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_mind_map
assert
string_literal
62
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"Root"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_mcp_file_upload.py
test_source_add_file_calls_client
assert
string_literal
45
import tempfile from pathlib import Path from unittest.mock import patch, MagicMock import pytest class TestMCPSourceAddFile: def test_source_add_file_calls_client(self): """Test that source_add file type calls client.add_file correctly.""" from notebooklm_tools.mcp.tools import sources f...
"file"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notes.py
test_rpc_constants_exist
assert
string_literal
16
import pytest from unittest.mock import patch, MagicMock def test_rpc_constants_exist(): """Test that RPC constants are defined.""" from notebooklm_tools.core.base import BaseClient assert hasattr(BaseClient, 'RPC_CREATE_NOTE') assert hasattr(BaseClient, 'RPC_GET_NOTES') assert hasattr(BaseClient,...
"cFji9"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_downloads.py
test_download_audio
assert
string_literal
36
import pytest from unittest.mock import MagicMock, AsyncMock from notebooklm_tools.services.downloads import ( validate_artifact_type, validate_output_format, get_default_extension, download_sync, download_async, VALID_ARTIFACT_TYPES, VALID_OUTPUT_FORMATS, ) from notebooklm_tools.services.e...
"audio"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notebooks.py
test_raw_rpc_list_parsed
assert
string_literal
60
import pytest from unittest.mock import MagicMock from types import SimpleNamespace from notebooklm_tools.services.notebooks import ( list_notebooks, get_notebook, describe_notebook, create_notebook, rename_notebook, delete_notebook, ) from notebooklm_tools.services.errors import ( ServiceE...
"src-1"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notebooks.py
test_dataclass_fallback
assert
string_literal
47
import pytest from unittest.mock import MagicMock from types import SimpleNamespace from notebooklm_tools.services.notebooks import ( list_notebooks, get_notebook, describe_notebook, create_notebook, rename_notebook, delete_notebook, ) from notebooklm_tools.services.errors import ( ServiceE...
"nb-42"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_research.py
test_drive_fast_works
assert
string_literal
22
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.research import ( start_research, poll_research, import_research, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestStartResearch: def test_...
"drive"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sharing.py
test_collaborator_details_preserved
assert
string_literal
36
import pytest from unittest.mock import MagicMock from dataclasses import dataclass from notebooklm_tools.services.sharing import ( get_share_status, set_public_access, invite_collaborator, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock...
"owner"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sharing.py
test_collaborator_details_preserved
assert
string_literal
38
import pytest from unittest.mock import MagicMock from dataclasses import dataclass from notebooklm_tools.services.sharing import ( get_share_status, set_public_access, invite_collaborator, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock...
"Alice"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sources.py
test_add_url_source
assert
string_literal
47
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.sources import ( validate_source_type, resolve_drive_mime_type, add_source, list_drive_sources, sync_drive_sources, delete_source, describe_source, get_source_content, VALID_SOURCE_TYPES, ) from noteboo...
"src-1"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sources.py
test_add_text_source
assert
string_literal
47
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.sources import ( validate_source_type, resolve_drive_mime_type, add_source, list_drive_sources, sync_drive_sources, delete_source, describe_source, get_source_content, VALID_SOURCE_TYPES, ) from noteboo...
"src-2"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sources.py
test_add_drive_source
assert
string_literal
46
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.sources import ( validate_source_type, resolve_drive_mime_type, add_source, list_drive_sources, sync_drive_sources, delete_source, describe_source, get_source_content, VALID_SOURCE_TYPES, ) from noteboo...
"drive"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sources.py
test_add_drive_source
assert
string_literal
47
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.sources import ( validate_source_type, resolve_drive_mime_type, add_source, list_drive_sources, sync_drive_sources, delete_source, describe_source, get_source_content, VALID_SOURCE_TYPES, ) from noteboo...
"src-3"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_audio
assert
string_literal
60
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"audio"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_audio
assert
string_literal
61
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"art-1"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_video
assert
string_literal
60
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"video"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_video
assert
string_literal
61
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"art-2"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_infographic
assert
string_literal
61
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"art-3"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_slide_deck
assert
string_literal
61
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"art-4"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_report
assert
string_literal
61
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"art-5"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_flashcards
assert
string_literal
61
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"art-6"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_quiz
assert
string_literal
61
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"art-7"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_studio.py
test_create_data_table
assert
string_literal
64
import json import pytest from unittest.mock import MagicMock, patch from notebooklm_tools.services.studio import ( validate_artifact_type, resolve_code, create_artifact, get_studio_status, rename_artifact, delete_artifact, VALID_ARTIFACT_TYPES, ) from notebooklm_tools.services.errors impo...
"art-8"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_mcp_e2e.py
test_source_add_invalid_type
assert
string_literal
47
import os import time import pytest pytestmark = pytest.mark.skipif( not os.environ.get("NOTEBOOKLM_E2E"), reason="E2E tests disabled. Set NOTEBOOKLM_E2E=1 to run." ) def mcp_tools(): """Import all MCP tools and reset client for fresh auth.""" # Reset cached client to pick up fresh auth tokens fro...
"error"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_mcp_file_upload.py
test_source_add_file_requires_path
assert
string_literal
20
import tempfile from pathlib import Path from unittest.mock import patch, MagicMock import pytest class TestMCPSourceAddFile: def test_source_add_file_requires_path(self): """Test that file_path is required for source_type=file.""" from notebooklm_tools.mcp.tools import sources result = ...
"error"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_base.py
test_get_httpx_cookies_from_dict
assert
string_literal
13
from unittest.mock import patch, MagicMock import pytest def test_get_httpx_cookies_from_dict(): """Test converting dict cookies to httpx.Cookies.""" from notebooklm_tools.core.base import BaseClient with patch.object(BaseClient, '_refresh_auth_tokens'): client = BaseClient(cookies={"SID": "ab...
"abc123"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_base.py
test_parse_response
assert
string_literal
19
from unittest.mock import patch, MagicMock import pytest def test_parse_response(): """Test parsing batchexecute response.""" from notebooklm_tools.core.base import BaseClient with patch.object(BaseClient, '_refresh_auth_tokens'): client = BaseClient(cookies={}, csrf_token="token") ...
"wrb.fr"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_data_types.py
test_collaborator
assert
string_literal
11
from notebooklm_tools.core.data_types import ( ConversationTurn, Collaborator, ShareStatus, Notebook, ) def test_collaborator(): collab = Collaborator(email="test@example.com", role="editor") assert collab.role ==
"editor"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_errors.py
test_artifact_not_found_error
assert
string_literal
18
from notebooklm_tools.core.errors import ( NotebookLMError, ArtifactError, ArtifactNotReadyError, ArtifactParseError, ArtifactDownloadError, ArtifactNotFoundError, ClientAuthenticationError, ) def test_artifact_not_found_error(): """Test ArtifactNotFoundError stores artifact info.""" ...
"report"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notebooks.py
test_create_notebook_uses_correct_rpc
assert
string_literal
18
import pytest from unittest.mock import patch, MagicMock def test_create_notebook_uses_correct_rpc(): """Test that create_notebook calls the correct RPC.""" from notebooklm_tools.core.notebooks import NotebookMixin with patch.object(NotebookMixin, '_refresh_auth_tokens'): with patch.object(Not...
"CCqFvf"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notebooks.py
test_list_notebooks_uses_correct_rpc
assert
string_literal
26
import pytest from unittest.mock import patch, MagicMock def test_list_notebooks_uses_correct_rpc(): """Test that list_notebooks calls the correct RPC.""" from notebooklm_tools.core.notebooks import NotebookMixin with patch.object(NotebookMixin, '_refresh_auth_tokens'): with patch.object(Noteb...
"wXbhsf"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notebooks.py
test_delete_notebook_uses_correct_rpc
assert
string_literal
26
import pytest from unittest.mock import patch, MagicMock def test_delete_notebook_uses_correct_rpc(): """Test that delete_notebook calls the correct RPC.""" from notebooklm_tools.core.notebooks import NotebookMixin with patch.object(NotebookMixin, '_refresh_auth_tokens'): with patch.object(Not...
"WWINqb"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notes.py
test_rpc_constants_exist
assert
string_literal
15
import pytest from unittest.mock import patch, MagicMock def test_rpc_constants_exist(): """Test that RPC constants are defined.""" from notebooklm_tools.core.base import BaseClient assert hasattr(BaseClient, 'RPC_CREATE_NOTE') assert hasattr(BaseClient, 'RPC_GET_NOTES') assert hasattr(BaseClient,...
"CYK0Xb"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notes.py
test_rpc_constants_exist
assert
string_literal
17
import pytest from unittest.mock import patch, MagicMock def test_rpc_constants_exist(): """Test that RPC constants are defined.""" from notebooklm_tools.core.base import BaseClient assert hasattr(BaseClient, 'RPC_CREATE_NOTE') assert hasattr(BaseClient, 'RPC_GET_NOTES') assert hasattr(BaseClient,...
"cYAfTb"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notes.py
test_rpc_constants_exist
assert
string_literal
18
import pytest from unittest.mock import patch, MagicMock def test_rpc_constants_exist(): """Test that RPC constants are defined.""" from notebooklm_tools.core.base import BaseClient assert hasattr(BaseClient, 'RPC_CREATE_NOTE') assert hasattr(BaseClient, 'RPC_GET_NOTES') assert hasattr(BaseClient,...
"AH0mwd"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notes.py
test_list_notes_filters_mind_maps
assert
string_literal
27
import pytest from unittest.mock import patch, MagicMock def test_list_notes_filters_mind_maps(): """Test that list_notes filters out mind maps.""" from notebooklm_tools.core.notes import NotesMixin with patch.object(NotesMixin, '_refresh_auth_tokens'): with patch.object(NotesMixin, '_call_rpc') a...
"note_1"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_sharing.py
test_get_share_status_uses_correct_rpc
assert
string_literal
18
import pytest from unittest.mock import patch, MagicMock def test_get_share_status_uses_correct_rpc(): """Test that get_share_status calls the correct RPC.""" from notebooklm_tools.core.sharing import SharingMixin with patch.object(SharingMixin, '_refresh_auth_tokens'): with patch.object(Shari...
"JFMDGd"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_sharing.py
test_set_public_access_uses_correct_rpc
assert
string_literal
18
import pytest from unittest.mock import patch, MagicMock def test_set_public_access_uses_correct_rpc(): """Test that set_public_access calls the correct RPC.""" from notebooklm_tools.core.sharing import SharingMixin with patch.object(SharingMixin, '_refresh_auth_tokens'): with patch.object(Sha...
"QDyure"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_chat.py
test_custom_goal_with_prompt_works
assert
string_literal
22
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.chat import query, configure_chat from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestConfigureChat: def test_custom_goal_with_prompt_works(self, mock_clien...
"custom"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_downloads.py
test_download_report
assert
string_literal
35
import pytest from unittest.mock import MagicMock, AsyncMock from notebooklm_tools.services.downloads import ( validate_artifact_type, validate_output_format, get_default_extension, download_sync, download_async, VALID_ARTIFACT_TYPES, VALID_OUTPUT_FORMATS, ) from notebooklm_tools.services.e...
"report"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_exports.py
test_docs_export_returns_correct_result
assert
string_literal
26
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.exports import export_artifact, ExportResult from notebooklm_tools.services.errors import ValidationError, ExportError def mock_client(): """Create a mock NotebookLMClient.""" return MagicMock() class TestExportArtifactSuccess: ...
"nb-123"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_exports.py
test_sheets_export_returns_correct_result
assert
string_literal
25
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.exports import export_artifact, ExportResult from notebooklm_tools.services.errors import ValidationError, ExportError def mock_client(): """Create a mock NotebookLMClient.""" return MagicMock() class TestExportArtifactSuccess: ...
"sheets"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notebooks.py
test_raw_rpc_list_parsed
assert
string_literal
57
import pytest from unittest.mock import MagicMock from types import SimpleNamespace from notebooklm_tools.services.notebooks import ( list_notebooks, get_notebook, describe_notebook, create_notebook, rename_notebook, delete_notebook, ) from notebooklm_tools.services.errors import ( ServiceE...
"nb-123"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notebooks.py
test_successful_creation
assert
string_literal
47
import pytest from unittest.mock import MagicMock from types import SimpleNamespace from notebooklm_tools.services.notebooks import ( list_notebooks, get_notebook, describe_notebook, create_notebook, rename_notebook, delete_notebook, ) from notebooklm_tools.services.errors import ( ServiceE...
"nb-new"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notebooks.py
test_successful_creation
assert
string_literal
48
import pytest from unittest.mock import MagicMock from types import SimpleNamespace from notebooklm_tools.services.notebooks import ( list_notebooks, get_notebook, describe_notebook, create_notebook, rename_notebook, delete_notebook, ) from notebooklm_tools.services.errors import ( ServiceE...
"New NB"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notes.py
test_returns_notes_and_count
assert
string_literal
26
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.notes import ( list_notes, create_note, update_note, delete_note, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestListNotes: def test_...
"nb-123"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sharing.py
test_returns_correct_structure
assert
string_literal
31
import pytest from unittest.mock import MagicMock from dataclasses import dataclass from notebooklm_tools.services.sharing import ( get_share_status, set_public_access, invite_collaborator, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock...
"nb-123"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sharing.py
test_returns_correct_structure
assert
string_literal
33
import pytest from unittest.mock import MagicMock from dataclasses import dataclass from notebooklm_tools.services.sharing import ( get_share_status, set_public_access, invite_collaborator, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock...
"public"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sharing.py
test_valid_viewer_role
assert
string_literal
24
import pytest from unittest.mock import MagicMock from dataclasses import dataclass from notebooklm_tools.services.sharing import ( get_share_status, set_public_access, invite_collaborator, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock...
"viewer"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sharing.py
test_valid_editor_role
assert
string_literal
23
import pytest from unittest.mock import MagicMock from dataclasses import dataclass from notebooklm_tools.services.sharing import ( get_share_status, set_public_access, invite_collaborator, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock...
"editor"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_base.py
test_parse_response
assert
string_literal
20
from unittest.mock import patch, MagicMock import pytest def test_parse_response(): """Test parsing batchexecute response.""" from notebooklm_tools.core.base import BaseClient with patch.object(BaseClient, '_refresh_auth_tokens'): client = BaseClient(cookies={}, csrf_token="token") ...
"testRpc"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_errors.py
test_artifact_not_found_error
assert
string_literal
17
from notebooklm_tools.core.errors import ( NotebookLMError, ArtifactError, ArtifactNotReadyError, ArtifactParseError, ArtifactDownloadError, ArtifactNotFoundError, ClientAuthenticationError, ) def test_artifact_not_found_error(): """Test ArtifactNotFoundError stores artifact info.""" ...
"abc-123"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_retry.py
test_execute_with_retry_success
assert
string_literal
20
import pytest import httpx from unittest.mock import Mock, patch from notebooklm_tools.core.retry import ( is_retryable_error, execute_with_retry, retry_on_server_error, DEFAULT_MAX_RETRIES, DEFAULT_BASE_DELAY ) def mock_sleep(): with patch("time.sleep") as mock: yield mock def test_ex...
"success"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_chat.py
test_successful_default_config
assert
string_literal
18
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.chat import query, configure_chat from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestConfigureChat: def test_successful_default_config(self, mock_client): ...
"default"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_chat.py
test_shorter_response_length_works
assert
string_literal
18
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.chat import query, configure_chat from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestConfigureChat: def test_shorter_response_length_works(self, mock_clien...
"shorter"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_exports.py
test_export_type_case_insensitive
assert
string_literal
25
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.exports import export_artifact, ExportResult from notebooklm_tools.services.errors import ValidationError, ExportError def mock_client(): """Create a mock NotebookLMClient.""" return MagicMock() class TestExportArtifactValidatio...
"success"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_exports.py
test_docs_export_returns_correct_result
assert
string_literal
27
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.exports import export_artifact, ExportResult from notebooklm_tools.services.errors import ValidationError, ExportError def mock_client(): """Create a mock NotebookLMClient.""" return MagicMock() class TestExportArtifactSuccess: ...
"art-456"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notes.py
test_successful_creation
assert
string_literal
24
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.notes import ( list_notes, create_note, update_note, delete_note, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestCreateNote: def test...
"My Note"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_api_client.py
test_add_drive_source_timeout_returns_status
assert
string_literal
30
import pytest import json from unittest.mock import MagicMock, patch import httpx from notebooklm_tools.core.client import NotebookLMClient, AuthenticationError def mock_client(): cookies = {"SID": "test_sid"} with patch.object(NotebookLMClient, '_refresh_auth_tokens') as mock_refresh: client = Noteboo...
"timeout"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_download_integration.py
test_mcp_download_report
assert
string_literal
80
import os import shutil from pathlib import Path import pytest from notebooklm_tools.core.client import ArtifactNotReadyError, NotebookLMClient NOTEBOOK_ID = "4085e211-fdb0-4802-b973-b43b9f99b6f7" pytestmark = pytest.mark.skipif( not os.environ.get("NOTEBOOKLM_E2E"), reason="Integration tests disabled. Set ...
"success"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_mcp_e2e.py
test_notebook
assert
string_literal
44
import os import time import pytest pytestmark = pytest.mark.skipif( not os.environ.get("NOTEBOOKLM_E2E"), reason="E2E tests disabled. Set NOTEBOOKLM_E2E=1 to run." ) def mcp_tools(): """Import all MCP tools and reset client for fresh auth.""" # Reset cached client to pick up fresh auth tokens fro...
"success"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_mcp_file_upload.py
test_source_add_file_calls_client
assert
string_literal
43
import tempfile from pathlib import Path from unittest.mock import patch, MagicMock import pytest class TestMCPSourceAddFile: def test_source_add_file_calls_client(self): """Test that source_add file type calls client.add_file correctly.""" from notebooklm_tools.mcp.tools import sources f...
"success"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_chat.py
test_successful_query
assert
string_literal
23
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.chat import query, configure_chat from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestQuery: def test_successful_query(self, mock_client): mock_clie...
"conv-123"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notebooks.py
test_raw_rpc_list_parsed
assert
string_literal
61
import pytest from unittest.mock import MagicMock from types import SimpleNamespace from notebooklm_tools.services.notebooks import ( list_notebooks, get_notebook, describe_notebook, create_notebook, rename_notebook, delete_notebook, ) from notebooklm_tools.services.errors import ( ServiceE...
"Source B"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notebooks.py
test_dataclass_fallback
assert
string_literal
48
import pytest from unittest.mock import MagicMock from types import SimpleNamespace from notebooklm_tools.services.notebooks import ( list_notebooks, get_notebook, describe_notebook, create_notebook, rename_notebook, delete_notebook, ) from notebooklm_tools.services.errors import ( ServiceE...
"Fallback"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notes.py
test_successful_creation
assert
string_literal
23
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.notes import ( list_notes, create_note, update_note, delete_note, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestCreateNote: def test...
"note-new"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_research.py
test_successful_start
assert
string_literal
25
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.research import ( start_research, poll_research, import_research, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestStartResearch: def test_...
"task-123"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_api_client.py
test_get_notebook_sources_extracts_url
assert
string_literal
61
import pytest import json from unittest.mock import MagicMock, patch import httpx from notebooklm_tools.core.client import NotebookLMClient, AuthenticationError def mock_client(): cookies = {"SID": "test_sid"} with patch.object(NotebookLMClient, '_refresh_auth_tokens') as mock_refresh: client = Noteboo...
"web_page"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notebooks.py
test_successful_rename
assert
string_literal
47
import pytest from unittest.mock import MagicMock from types import SimpleNamespace from notebooklm_tools.services.notebooks import ( list_notebooks, get_notebook, describe_notebook, create_notebook, rename_notebook, delete_notebook, ) from notebooklm_tools.services.errors import ( ServiceE...
"New Title"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notes.py
test_default_title_used
assert_*
string_literal
23
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.notes import ( list_notes, create_note, update_note, delete_note, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestCreateNote: def test...
"New Note")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_research.py
test_completed_status
assert
string_literal
27
import pytest from unittest.mock import MagicMock from notebooklm_tools.services.research import ( start_research, poll_research, import_research, ) from notebooklm_tools.services.errors import ValidationError, ServiceError def mock_client(): return MagicMock() class TestPollResearch: def test_c...
"completed"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_api_client.py
test_refresh_auth_tokens_success
assert
string_literal
37
import pytest import json from unittest.mock import MagicMock, patch import httpx from notebooklm_tools.core.client import NotebookLMClient, AuthenticationError def mock_client(): cookies = {"SID": "test_sid"} with patch.object(NotebookLMClient, '_refresh_auth_tokens') as mock_refresh: client = Noteboo...
"123456789"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_base.py
test_base_client_init_with_csrf
assert
string_literal
13
from unittest.mock import patch, MagicMock import pytest def test_base_client_init_with_csrf(): """Test BaseClient initialization with CSRF token (skips refresh).""" from notebooklm_tools.core.base import BaseClient # When csrf_token is provided, _refresh_auth_tokens should NOT be called with patc...
"test_token"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_download.py
test_extract_cell_text_handles_string
assert
string_literal
12
import pytest from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.download import DownloadMixin class TestDownloadMixinMethods: def test_extract_cell_text_handles_string(self): """Test that _extract_cell_text handles string input.""" result = DownloadMixin._extract_cell_t...
"test value"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notes.py
test_list_notes_filters_mind_maps
assert
string_literal
28
import pytest from unittest.mock import patch, MagicMock def test_list_notes_filters_mind_maps(): """Test that list_notes filters out mind maps.""" from notebooklm_tools.core.notes import NotesMixin with patch.object(NotesMixin, '_refresh_auth_tokens'): with patch.object(NotesMixin, '_call_rpc') a...
"Note Title"
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_base.py
test_build_url
assert
variable
12
from unittest.mock import patch, MagicMock import pytest def test_build_url(): """Test building batchexecute URL.""" from notebooklm_tools.core.base import BaseClient with patch.object(BaseClient, '_refresh_auth_tokens'): client = BaseClient(cookies={}, csrf_token="test_token", session_id="tes...
url
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_base.py
test_build_request_body
assert
variable
12
from unittest.mock import patch, MagicMock import pytest def test_build_request_body(): """Test building RPC request body.""" from notebooklm_tools.core.base import BaseClient with patch.object(BaseClient, '_refresh_auth_tokens'): client = BaseClient(cookies={}, csrf_token="test_token") ...
body
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_download.py
test_extract_cell_text_handles_nested_list
assert
variable
12
import pytest from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.download import DownloadMixin class TestDownloadMixinMethods: def test_extract_cell_text_handles_nested_list(self): """Test that _extract_cell_text handles nested list input.""" result = DownloadMixin._extr...
result
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_auth_migration.py
test_run_headless_auth_signature
assert
variable
16
import pytest from pathlib import Path class TestCDPModule: def test_run_headless_auth_signature(self): """run_headless_auth should have expected parameters.""" import inspect from notebooklm_tools.utils.cdp import run_headless_auth sig = inspect.signature(run_headless_auth) ...
params
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_auth_migration.py
test_no_auth_cli_in_base
assert
variable
11
import pytest from pathlib import Path class TestNoAuthCLIImports: def test_no_auth_cli_in_base(self): """base.py should import from cdp, not auth_cli.""" import notebooklm_tools.core.base as base source = Path(base.__file__).read_text() assert "from .auth_cli import" not in
source
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_e2e.py
test_query_notebook
assert
variable
50
import contextlib import os import time from pathlib import Path import pytest pytestmark = pytest.mark.skipif( not os.environ.get("NOTEBOOKLM_E2E"), reason="E2E tests disabled. Set NOTEBOOKLM_E2E=1 to run." ) def client(): """Create a client with cached credentials.""" from notebooklm_tools.core.aut...
result
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_e2e.py
test_upload_file
assert
variable
51
import contextlib import os import time from pathlib import Path import pytest pytestmark = pytest.mark.skipif( not os.environ.get("NOTEBOOKLM_E2E"), reason="E2E tests disabled. Set NOTEBOOKLM_E2E=1 to run." ) def client(): """Create a client with cached credentials.""" from notebooklm_tools.core.aut...
titles
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_mcp_e2e.py
test_notebook_list
assert
variable
44
import os import time import pytest pytestmark = pytest.mark.skipif( not os.environ.get("NOTEBOOKLM_E2E"), reason="E2E tests disabled. Set NOTEBOOKLM_E2E=1 to run." ) def mcp_tools(): """Import all MCP tools and reset client for fresh auth.""" # Reset cached client to pick up fresh auth tokens fro...
result
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor