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
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_call.py
test_function_call_eq
assert
variable
50
import inspect from typing import Awaitable import pytest from typing_extensions import assert_type from magentic.function_call import ( AsyncParallelFunctionCall, FunctionCall, ParallelFunctionCall, ) from magentic.streaming import async_iter def plus(a: int, b: int) -> int: return a + b async def ...
equal
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_call.py
test_async_parallel_function_call_call
assert
collection
37
import inspect from typing import Awaitable import pytest from typing_extensions import assert_type from magentic.function_call import ( AsyncParallelFunctionCall, FunctionCall, ParallelFunctionCall, ) from magentic.streaming import async_iter def plus(a: int, b: int) -> int: return a + b async def ...
(3, 7)
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_call.py
test_function_call_arguments
assert
variable
36
import inspect from typing import Awaitable import pytest from typing_extensions import assert_type from magentic.function_call import ( AsyncParallelFunctionCall, FunctionCall, ParallelFunctionCall, ) from magentic.streaming import async_iter def plus(a: int, b: int) -> int: return a + b async def ...
arguments
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_call.py
test_parallel_function_call_call
assert
collection
34
import inspect from typing import Awaitable import pytest from typing_extensions import assert_type from magentic.function_call import ( AsyncParallelFunctionCall, FunctionCall, ParallelFunctionCall, ) from magentic.streaming import async_iter def plus(a: int, b: int) -> int: return a + b async def ...
(3, "hello")
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_call.py
test_parallel_function_call_iter
assert
variable
33
import inspect from typing import Awaitable import pytest from typing_extensions import assert_type from magentic.function_call import ( AsyncParallelFunctionCall, FunctionCall, ParallelFunctionCall, ) from magentic.streaming import async_iter def plus(a: int, b: int) -> int: return a + b async def ...
function_calls
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_call.py
test_async_parallel_function_call_call
assert_*
complex_expr
36
import inspect from typing import Awaitable import pytest from typing_extensions import assert_type from magentic.function_call import ( AsyncParallelFunctionCall, FunctionCall, ParallelFunctionCall, ) from magentic.streaming import async_iter def plus(a: int, b: int) -> int: return a + b async def ...
tuple[int, ...])
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_call.py
test_parallel_function_call_call
assert_*
complex_expr
33
import inspect from typing import Awaitable import pytest from typing_extensions import assert_type from magentic.function_call import ( AsyncParallelFunctionCall, FunctionCall, ParallelFunctionCall, ) from magentic.streaming import async_iter def plus(a: int, b: int) -> int: return a + b async def ...
tuple[int | str, ...])
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_call.py
test_async_parallel_function_call_call
assert_*
complex_expr
34
import inspect from typing import Awaitable import pytest from typing_extensions import assert_type from magentic.function_call import ( AsyncParallelFunctionCall, FunctionCall, ParallelFunctionCall, ) from magentic.streaming import async_iter def plus(a: int, b: int) -> int: return a + b async def ...
AsyncParallelFunctionCall[int])
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_call.py
test_parallel_function_call_call
assert_*
complex_expr
31
import inspect from typing import Awaitable import pytest from typing_extensions import assert_type from magentic.function_call import ( AsyncParallelFunctionCall, FunctionCall, ParallelFunctionCall, ) from magentic.streaming import async_iter def plus(a: int, b: int) -> int: return a + b async def ...
ParallelFunctionCall[int | str])
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_schema.py
test_function_call_function_schema_with_default_value
assert
numeric_literal
61
import collections.abc import json import typing from collections import OrderedDict from typing import Annotated, Any, Generic, TypeVar, get_origin import pytest from pydantic import BaseModel, Field, create_model from magentic._pydantic import ConfigDict, with_config from magentic.chat_model.function_schema import ...
4
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_schema.py
test_any_function_schema
assert
variable
138
import collections.abc import json import typing from collections import OrderedDict from typing import Annotated, Any, Generic, TypeVar, get_origin import pytest from pydantic import BaseModel, Field, create_model from magentic._pydantic import ConfigDict, with_config from magentic.chat_model.function_schema import ...
json_schema
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_schema.py
test_any_function_schema_parse_args
assert
variable
29
import collections.abc import json import typing from collections import OrderedDict from typing import Annotated, Any, Generic, TypeVar, get_origin import pytest from pydantic import BaseModel, Field, create_model from magentic._pydantic import ConfigDict, with_config from magentic.chat_model.function_schema import ...
expected_args
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_schema.py
test_base_model_function_schema_generic_model
assert
string_literal
33
import collections.abc import json import typing from collections import OrderedDict from typing import Annotated, Any, Generic, TypeVar, get_origin import pytest from pydantic import BaseModel, Field, create_model from magentic._pydantic import ConfigDict, with_config from magentic.chat_model.function_schema import ...
"return_user_int"
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_function_schema.py
test_any_function_schema_serialize_args
assert
func_call
29
import collections.abc import json import typing from collections import OrderedDict from typing import Annotated, Any, Generic, TypeVar, get_origin import pytest from pydantic import BaseModel, Field, create_model from magentic._pydantic import ConfigDict, with_config from magentic.chat_model.function_schema import ...
json.loads(expected_args_str)
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_chain.py
test_prompt_chain_max_calls
assert
numeric_literal
28
from unittest.mock import AsyncMock, Mock import pytest from magentic.chat_model.message import AssistantMessage from magentic.function_call import FunctionCall from magentic.prompt_chain import MaxFunctionCallsError, prompt_chain def test_prompt_chain_max_calls(): mock_function = Mock() mock_function.__name...
2
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_chain.py
test_prompt_chain_max_calls
assert
numeric_literal
29
from unittest.mock import AsyncMock, Mock import pytest from magentic.chat_model.message import AssistantMessage from magentic.function_call import FunctionCall from magentic.prompt_chain import MaxFunctionCallsError, prompt_chain def test_prompt_chain_max_calls(): mock_function = Mock() mock_function.__name...
1
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_chain.py
test_prompt_chain_max_calls
pytest.raises
variable
26
from unittest.mock import AsyncMock, Mock import pytest from magentic.chat_model.message import AssistantMessage from magentic.function_call import FunctionCall from magentic.prompt_chain import MaxFunctionCallsError, prompt_chain def test_prompt_chain_max_calls(): mock_function = Mock() mock_function.__name...
MaxFunctionCallsError)
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_promptfunction_call
assert
numeric_literal
32
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
1
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_decorator_return_dict
assert
numeric_literal
31
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
2
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_decorator_return_bool
assert
bool_literal
25
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
True
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_decorator_with_context_manager
assert
string_literal
36
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
"gpt-4"
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_promptfunction_call
assert
string_literal
31
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
"Hello!"
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_promptfunction_call
assert
collection
37
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
["stop"]
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_decorator_max_retries
assert
string_literal
35
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
"Ireland"
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_promptfunction_format
assert
string_literal
24
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
"Test arg."
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_promptfunction_call
assert
collection
36
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
[str, bool]
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_promptfunction_format_custom_type
assert
string_literal
28
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
"Test custom."
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_decorator_ignore_multiple_tool_calls
assert
collection
31
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
[1, 2, 3, 4, 5]
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_decorator_with_context_manager
assert
string_literal
35
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
"gpt-3.5-turbo"
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_prompt_function.py
test_decorator_return_str
assert
string_literal
27
from inspect import getdoc from typing import Annotated, Awaitable from unittest.mock import AsyncMock, Mock import pytest from pydantic import AfterValidator, BaseModel from magentic.chat_model.message import AssistantMessage, UserMessage from magentic.chat_model.openai_chat_model import OpenaiChatModel from magenti...
"This is the docstring."
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_streaming.py
test_streamed_str_iter
assert
collection
27
from typing import AsyncIterator import pytest from magentic import AsyncStreamedStr, StreamedStr from magentic.streaming import ( CachedAsyncIterable, CachedIterable, aapply, adropwhile, agroupby, aiter_streamed_json_array, apeek, apply, async_iter, atakewhile, azip, i...
[]
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_streaming.py
test_azip
assert
variable
32
from typing import AsyncIterator import pytest from magentic import AsyncStreamedStr, StreamedStr from magentic.streaming import ( CachedAsyncIterable, CachedIterable, aapply, adropwhile, agroupby, aiter_streamed_json_array, apeek, apply, async_iter, atakewhile, azip, i...
expected
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_streaming.py
test_apply
assert
collection
26
from typing import AsyncIterator import pytest from magentic import AsyncStreamedStr, StreamedStr from magentic.streaming import ( CachedAsyncIterable, CachedIterable, aapply, adropwhile, agroupby, aiter_streamed_json_array, apeek, apply, async_iter, atakewhile, azip, i...
[0, 1, 2]
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_streaming.py
test_streamed_str_str
assert
string_literal
25
from typing import AsyncIterator import pytest from magentic import AsyncStreamedStr, StreamedStr from magentic.streaming import ( CachedAsyncIterable, CachedIterable, aapply, adropwhile, agroupby, aiter_streamed_json_array, apeek, apply, async_iter, atakewhile, azip, i...
"Hello World"
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_streaming.py
test_streamed_str_truncate
assert
string_literal
25
from typing import AsyncIterator import pytest from magentic import AsyncStreamedStr, StreamedStr from magentic.streaming import ( CachedAsyncIterable, CachedIterable, aapply, adropwhile, agroupby, aiter_streamed_json_array, apeek, apply, async_iter, atakewhile, azip, i...
"First [...]"
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_streaming.py
test_peek
assert
variable
32
from typing import AsyncIterator import pytest from magentic import AsyncStreamedStr, StreamedStr from magentic.streaming import ( CachedAsyncIterable, CachedIterable, aapply, adropwhile, agroupby, aiter_streamed_json_array, apeek, apply, async_iter, atakewhile, azip, i...
expected_first
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_streaming.py
test_iter_cached_iterable
assert
func_call
33
from typing import AsyncIterator import pytest from magentic import AsyncStreamedStr, StreamedStr from magentic.streaming import ( CachedAsyncIterable, CachedIterable, aapply, adropwhile, agroupby, aiter_streamed_json_array, apeek, apply, async_iter, atakewhile, azip, i...
list(expected)
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_typing.py
test_name_type
assert
variable
34
import typing from types import NoneType from typing import Any, Generic, Iterable, TypeVar import pytest from pydantic import BaseModel from magentic.typing import ( is_any_origin_subclass, is_origin_abstract, is_origin_subclass, name_type, split_union_type, ) @pytest.mark.parametrize( ("typ...
expected_name
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_typing.py
test_split_union_type
assert
variable
26
import typing from types import NoneType from typing import Any, Generic, Iterable, TypeVar import pytest from pydantic import BaseModel from magentic.typing import ( is_any_origin_subclass, is_origin_abstract, is_origin_subclass, name_type, split_union_type, ) @pytest.mark.parametrize( ("typ...
expected_types
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_typing.py
test_is_origin_abstract
assert
variable
26
import typing from types import NoneType from typing import Any, Generic, Iterable, TypeVar import pytest from pydantic import BaseModel from magentic.typing import ( is_any_origin_subclass, is_origin_abstract, is_origin_subclass, name_type, split_union_type, ) @pytest.mark.parametrize( ("typ...
expected_result
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_vision.py
test_user_image_message_format_noop
assert_*
variable
27
from pathlib import Path import pytest from typing_extensions import assert_type from magentic.chat_model.anthropic_chat_model import AnthropicChatModel from magentic.chat_model.message import Placeholder, UserMessage from magentic.chat_model.openai_chat_model import ( OpenaiChatModel, message_to_openai_messa...
str)
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_vision.py
test_user_image_message_format_placeholder
assert_*
variable
27
from pathlib import Path import pytest from typing_extensions import assert_type from magentic.chat_model.anthropic_chat_model import AnthropicChatModel from magentic.chat_model.message import Placeholder, UserMessage from magentic.chat_model.openai_chat_model import ( OpenaiChatModel, message_to_openai_messa...
bytes)
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_vision.py
test_user_image_message_format_noop
assert_*
complex_expr
26
from pathlib import Path import pytest from typing_extensions import assert_type from magentic.chat_model.anthropic_chat_model import AnthropicChatModel from magentic.chat_model.message import Placeholder, UserMessage from magentic.chat_model.openai_chat_model import ( OpenaiChatModel, message_to_openai_messa...
UserImageMessage[str])
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_vision.py
test_user_image_message_format_placeholder
assert_*
complex_expr
26
from pathlib import Path import pytest from typing_extensions import assert_type from magentic.chat_model.anthropic_chat_model import AnthropicChatModel from magentic.chat_model.message import Placeholder, UserMessage from magentic.chat_model.openai_chat_model import ( OpenaiChatModel, message_to_openai_messa...
UserImageMessage[bytes])
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_vision.py
test_user_image_message_format_placeholder
assert
func_call
28
from pathlib import Path import pytest from typing_extensions import assert_type from magentic.chat_model.anthropic_chat_model import AnthropicChatModel from magentic.chat_model.message import Placeholder, UserMessage from magentic.chat_model.openai_chat_model import ( OpenaiChatModel, message_to_openai_messa...
UserImageMessage(image_bytes_jpg)
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_vision.py
test_user_image_message_format_noop
assert
func_call
28
from pathlib import Path import pytest from typing_extensions import assert_type from magentic.chat_model.anthropic_chat_model import AnthropicChatModel from magentic.chat_model.message import Placeholder, UserMessage from magentic.chat_model.openai_chat_model import ( OpenaiChatModel, message_to_openai_messa...
UserImageMessage("https://example.com/image.jpg")
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jackmpcollins/magentic
225c1b36f126ab8c39196073abda139130559440
98
train
train
tests/test_vision.py
test_message_to_openai_message_user_image_message_str
assert
collection
24
from pathlib import Path import pytest from typing_extensions import assert_type from magentic.chat_model.anthropic_chat_model import AnthropicChatModel from magentic.chat_model.message import Placeholder, UserMessage from magentic.chat_model.openai_chat_model import ( OpenaiChatModel, message_to_openai_messa...
{ "role": "user", "content": [ { "type": "image_url", "image_url": {"url": "https://example.com/image.jpg", "detail": "auto"}, } ], }
225c1b36f126ab8c39196073abda139130559440
98
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_auth_guard.py
test_account_mismatch_error_has_hint
assert
complex_expr
11
from notebooklm_tools.core.exceptions import AccountMismatchError, NLMError def test_account_mismatch_error_has_hint(): """Error should include a hint about --force.""" err = AccountMismatchError( stored_email="work@company.com", new_email="personal@gmail.com", profile_name="work", ...
err.hint
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_e2e.py
test_create_and_delete_notebook
assert
complex_expr
37
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...
notebook.title
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_file_upload.py
test_add_file_orchestrates_three_steps
assert
complex_expr
43
import tempfile from pathlib import Path from unittest.mock import Mock, patch, MagicMock import pytest import httpx from notebooklm_tools.core.exceptions import FileValidationError, FileUploadError class TestAddFileIntegration: def test_add_file_orchestrates_three_steps(self): """Test that add_file cor...
temp_path.name
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_file_upload.py
test_add_file_orchestrates_three_steps
assert_*
complex_expr
37
import tempfile from pathlib import Path from unittest.mock import Mock, patch, MagicMock import pytest import httpx from notebooklm_tools.core.exceptions import FileValidationError, FileUploadError class TestAddFileIntegration: def test_add_file_orchestrates_three_steps(self): """Test that add_file cor...
temp_path.name)
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
complex_expr
21
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 = ...
result["error"]
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_research.py
test_compact_truncates_report
assert
complex_expr
29
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...
result["report"]
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/cli/test_formatters.py
test_detect_output_format_json_flag
assert
complex_expr
9
import pytest from unittest.mock import patch, Mock import sys from notebooklm_tools.cli.formatters import detect_output_format, OutputFormat def test_detect_output_format_json_flag(): # Flag takes precedence assert detect_output_format(json_flag=True) ==
OutputFormat.JSON
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
complex_expr
30
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: ...
result["message"]
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notes.py
test_update_title
assert
complex_expr
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"]
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
complex_expr
25
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...
result["message"]
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/cli/test_formatters.py
test_detect_output_format_tty
assert
complex_expr
10
import pytest from unittest.mock import patch, Mock import sys from notebooklm_tools.cli.formatters import detect_output_format, OutputFormat def test_detect_output_format_tty(): # TTY = Table with patch("sys.stdout.isatty", return_value=True): assert detect_output_format() ==
OutputFormat.TABLE
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/cli/test_formatters.py
test_detect_output_format_quiet_flag
assert
complex_expr
9
import pytest from unittest.mock import patch, Mock import sys from notebooklm_tools.cli.formatters import detect_output_format, OutputFormat def test_detect_output_format_quiet_flag(): # Quiet = Compact (unless JSON specified) assert detect_output_format(quiet_flag=True) ==
OutputFormat.COMPACT
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_retry.py
test_execute_with_retry_max_retries_exceeded
pytest.raises
complex_expr
24
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...
httpx.HTTPStatusError)
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_conversation.py
test_clear_conversation_removes_from_cache
assert
complex_expr
21
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_clear_conversation_removes_from_cache(self): """Test that clear_conversation removes conversation f...
mixin._conversation_cache
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notes.py
test_successful_creation
assert
complex_expr
25
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...
result["content_preview"]
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notes.py
test_no_id_in_result_raises_service_error
pytest.raises
complex_expr
20
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...
ServiceError, match="no ID")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_research.py
test_falsy_result_raises_service_error
pytest.raises
complex_expr
19
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_...
ServiceError, match="no data")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_studio.py
test_get_studio_status_is_alias
assert
complex_expr
16
import pytest from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.studio import StudioMixin class TestStudioMixinMethods: def test_get_studio_status_is_alias(self): """Test that get_studio_status is an alias for poll_studio_status.""" mixin = StudioMixin(cookies={"test": ...
mixin.get_studio_status.__doc__
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_research.py
test_no_research_raises_service_error
pytest.raises
complex_expr
19
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 TestImportResearch: def test...
ServiceError, match="not found")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_research.py
test_start_research_validates_mode
pytest.raises
complex_expr
14
import pytest from unittest.mock import patch from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.research import ResearchMixin class TestResearchMixinMethods: def test_start_research_validates_mode(self): """Test that start_research validates mode parameter.""" mixin = R...
ValueError, match="Invalid mode")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_downloads.py
test_invalid_type_raises_validation_error
pytest.raises
complex_expr
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...
ValidationError, match="Unknown")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_research.py
test_start_research_validates_source
pytest.raises
complex_expr
14
import pytest from unittest.mock import patch from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.research import ResearchMixin class TestResearchMixinMethods: def test_start_research_validates_source(self): """Test that start_research validates source parameter.""" mixin...
ValueError, match="Invalid source")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_chat.py
test_falsy_result_raises_service_error
pytest.raises
complex_expr
15
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_falsy_result_raises_service_error(self, mock_client): ...
ServiceError, match="empty result")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_chat.py
test_falsy_result_raises_service_error
pytest.raises
complex_expr
15
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_falsy_result_raises_service_error(self, mock_c...
ServiceError, match="falsy result")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_chat.py
test_api_error_raises_service_error
pytest.raises
complex_expr
15
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_api_error_raises_service_error(self, mock_client): ...
ServiceError, match="Query failed")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_notes.py
test_falsy_result_raises_service_error
pytest.raises
complex_expr
20
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...
ServiceError, match="falsy result")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_file_upload.py
test_empty_file_raises_error
pytest.raises
complex_expr
27
import tempfile from pathlib import Path from unittest.mock import Mock, patch, MagicMock import pytest import httpx from notebooklm_tools.core.exceptions import FileValidationError, FileUploadError class TestFileValidation: def test_empty_file_raises_error(self): """Test that empty file raises FileVali...
FileValidationError, match="empty")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_exports.py
test_no_url_raises_export_error
pytest.raises
complex_expr
19
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 TestExportArtifactFailure: ...
ExportError, match="no document URL")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_exports.py
test_api_exception_wrapped_in_export_error
pytest.raises
complex_expr
16
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 TestExportArtifactFailure: ...
ExportError, match="API call failed")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_chat.py
test_invalid_goal_raises_validation_error
pytest.raises
complex_expr
14
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_invalid_goal_raises_validation_error(self, moc...
ValidationError, match="Invalid goal")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_chat.py
test_prompt_too_long_raises_validation_error
pytest.raises
complex_expr
15
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_prompt_too_long_raises_validation_error(self, ...
ValidationError, match="10000 character")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_studio.py
test_create_report_validates_format
pytest.raises
complex_expr
13
import pytest from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.studio import StudioMixin class TestStudioMixinMethods: def test_create_report_validates_format(self): """Test that create_report validates report_format parameter.""" mixin = StudioMixin(cookies={"test": "...
ValueError, match="Invalid report_format")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_chat.py
test_api_error_raises_service_error
pytest.raises
complex_expr
15
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_api_error_raises_service_error(self, mock_clie...
ServiceError, match="Failed to configure")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_api_client.py
test_rpc_error_16_detection
pytest.raises
complex_expr
36
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...
AuthenticationError, match="RPC Error 16")
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_auth_guard.py
test_save_allows_when_new_email_is_none
assert
none_literal
38
from notebooklm_tools.core.exceptions import AccountMismatchError, NLMError class TestSaveProfileMismatchGuard: def _create_existing_profile(self, tmp_path: Path, email: str) -> AuthManager: """Helper: create a profile with existing credentials on disk.""" profiles_dir = tmp_path / "profiles" / "t...
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_base.py
test_base_client_import
assert
none_literal
8
from unittest.mock import patch, MagicMock import pytest def test_base_client_import(): """Test that BaseClient can be imported.""" from notebooklm_tools.core.base import BaseClient assert BaseClient is not
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_conversation.py
test_conversation_mixin_import
assert
none_literal
12
import pytest from unittest.mock import patch from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.conversation import ConversationMixin class TestConversationMixinImport: def test_conversation_mixin_import(self): """Test that ConversationMixin can be imported.""" assert ...
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_download.py
test_download_mixin_import
assert
none_literal
11
import pytest from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.download import DownloadMixin class TestDownloadMixinImport: def test_download_mixin_import(self): """Test that DownloadMixin can be imported.""" assert DownloadMixin is not
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notebooks.py
test_notebook_mixin_import
assert
none_literal
8
import pytest from unittest.mock import patch, MagicMock def test_notebook_mixin_import(): """Test that NotebookMixin can be imported.""" from notebooklm_tools.core.notebooks import NotebookMixin assert NotebookMixin is not
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_notes.py
test_notes_mixin_import
assert
none_literal
8
import pytest from unittest.mock import patch, MagicMock def test_notes_mixin_import(): """Test that NotesMixin can be imported.""" from notebooklm_tools.core.notes import NotesMixin assert NotesMixin is not
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_research.py
test_research_mixin_import
assert
none_literal
12
import pytest from unittest.mock import patch from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.research import ResearchMixin class TestResearchMixinImport: def test_research_mixin_import(self): """Test that ResearchMixin can be imported.""" assert ResearchMixin is not...
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_sharing.py
test_sharing_mixin_import
assert
none_literal
8
import pytest from unittest.mock import patch, MagicMock def test_sharing_mixin_import(): """Test that SharingMixin can be imported.""" from notebooklm_tools.core.sharing import SharingMixin assert SharingMixin is not
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_sources.py
test_source_mixin_import
assert
none_literal
8
import pytest from unittest.mock import patch, MagicMock def test_source_mixin_import(): """Test that SourceMixin can be imported.""" from notebooklm_tools.core.sources import SourceMixin assert SourceMixin is not
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_studio.py
test_studio_mixin_import
assert
none_literal
11
import pytest from notebooklm_tools.core.base import BaseClient from notebooklm_tools.core.studio import StudioMixin class TestStudioMixinImport: def test_studio_mixin_import(self): """Test that StudioMixin can be imported.""" assert StudioMixin is not
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_utils.py
test_parse_timestamp_none
assert
none_literal
9
from notebooklm_tools.core.utils import ( parse_timestamp, extract_cookies_from_chrome_export, RPC_NAMES, ) def test_parse_timestamp_none(): assert parse_timestamp(None) is
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_errors.py
test_basic_message
assert
none_literal
17
import pytest from notebooklm_tools.services.errors import ( ServiceError, ValidationError, NotFoundError, CreationError, ExportError, ) class TestServiceError: def test_basic_message(self): err = ServiceError("something broke") assert str(err) == "something broke" asse...
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_research.py
test_completed_status
assert
none_literal
29
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...
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/services/test_sharing.py
test_disable_public_returns_none_link
assert
none_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...
None
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_auth_guard.py
test_account_mismatch_error_contains_both_emails
assert
func_call
11
from notebooklm_tools.core.exceptions import AccountMismatchError, NLMError def test_account_mismatch_error_contains_both_emails(): """Error message should contain both the stored and new emails.""" err = AccountMismatchError( stored_email="work@company.com", new_email="personal@gmail.com", ...
str(err)
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_errors.py
test_artifact_not_ready_error
assert
func_call
15
from notebooklm_tools.core.errors import ( NotebookLMError, ArtifactError, ArtifactNotReadyError, ArtifactParseError, ArtifactDownloadError, ArtifactNotFoundError, ClientAuthenticationError, ) def test_artifact_not_ready_error(): """Test ArtifactNotReadyError includes artifact type and ...
str(err)
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/core/test_auth_guard.py
test_save_blocks_when_email_differs
assert
func_call
38
from notebooklm_tools.core.exceptions import AccountMismatchError, NLMError class TestSaveProfileMismatchGuard: def _create_existing_profile(self, tmp_path: Path, email: str) -> AuthManager: """Helper: create a profile with existing credentials on disk.""" profiles_dir = tmp_path / "profiles" / "t...
str(exc_info.value)
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor
jacob-bd/notebooklm-mcp-cli
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
train
train
tests/test_e2e.py
test_cli_help
assert
func_call
40
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.stdout.lower()
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
func_call
20
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): ...
result["message"].lower()
24aa24093380f94f4e73a789c7c524e8ad6b1cff
13
v2_extractor_at_anchor