repo_id stringclasses 409
values | prefix large_stringlengths 34 36.3k | target large_stringlengths 1 498 | assertion_type stringclasses 31
values | difficulty stringclasses 8
values | test_file stringlengths 10 121 | test_function stringlengths 1 104 | test_class stringlengths 0 51 | lineno int32 2 11.3k | commit_idx int32 |
|---|---|---|---|---|---|---|---|---|---|
BrainBlend-AI/atomic-agents | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.calculator import ( # noqa: E402
CalculatorTool,
CalculatorToolInputSchema,
CalculatorToolOutputSchema,
)
def test_calculator_tool():
calculator_tool = CalculatorTool()
input_schema ... | CalculatorToolOutputSchema(result="4.00000000000000") | assert | func_call | atomic-forge/tools/calculator/tests/test_calculator.py | test_calculator_tool | 17 | null | |
BrainBlend-AI/atomic-agents | import pytest
from typing import Any, Dict, List, Optional, Union
from atomic_agents import BaseIOSchema
from atomic_agents.connectors.mcp import SchemaTransformer
class TestSchemaTransformer:
def test_string_type_required(self):
prop_schema = {"type": "string", "description": "A string field"}
re... | str | assert | variable | atomic-agents/tests/connectors/mcp/test_schema_transformer.py | test_string_type_required | TestSchemaTransformer | 12 | null |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.tavily_search import ( # noqa: E402
TavilySearchTool,
TavilySearchToolInputSchema,
Tavily... | Exception) | pytest.raises | variable | atomic-forge/tools/tavily_search/tests/test_tavily_seach.py | test_tavily_search_tool_error | 200 | null | |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import patch
from atomic_agents.utils.token_counter import (
TokenCounter,
TokenCountResult,
TokenCountError,
get_token_counter,
)
class TestTokenCounter:
@patch("litellm.get_max_tokens")
@patch("litellm.token_counter")
def test_count_context(self, mock_tok... | 0 | assert | numeric_literal | atomic-agents/tests/utils/test_token_counter.py | test_count_context | TestTokenCounter | 181 | null |
BrainBlend-AI/atomic-agents | import uuid
from pydantic import BaseModel
import pytest
from atomic_agents import BaseIOSchema
from atomic_agents.utils import format_tool_message
def test_format_tool_message_with_different_tool():
class AnotherToolCall(BaseModel):
"""Another tool schema"""
field1: bool
field2: float
... | "AnotherToolCall" | assert | string_literal | atomic-agents/tests/utils/test_format_tool_message.py | test_format_tool_message_with_different_tool | 53 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from aiohttp import ClientSession
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.searxng_search import ( # noqa: E402
SearXNGSearchTool,
SearXNGSearchToolInputSchema,
Sea... | 5 | assert | numeric_literal | atomic-forge/tools/searxng_search/tests/test_searxng_search.py | test_searxng_search_tool_with_max_results | 214 | null | |
BrainBlend-AI/atomic-agents | import pytest
from pydantic import BaseModel
import asyncio
from atomic_agents.connectors.mcp import (
fetch_mcp_tools,
fetch_mcp_resources,
fetch_mcp_prompts,
create_mcp_orchestrator_schema,
fetch_mcp_attributes_with_schema,
fetch_mcp_tools_async,
fetch_mcp_resources_async,
fetch_mcp_pr... | 3 | assert | numeric_literal | atomic-agents/tests/connectors/mcp/test_mcp_factory.py | test_create_mcp_orchestrator_schema_with_prompts | 631 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.tavily_search import ( # noqa: E402
TavilySearchTool,
TavilySearchToolInputSchema,
Tavily... | "Result 2" | assert | string_literal | atomic-forge/tools/tavily_search/tests/test_tavily_seach.py | test_tavily_search_tool_include_answer | 234 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.tavily_search import ( # noqa: E402
TavilySearchTool,
TavilySearchToolInputSchema,
Tavily... | "Result Missing Query" | assert | string_literal | atomic-forge/tools/tavily_search/tests/test_tavily_seach.py | test_tavily_search_tool_missing_fields | 68 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, MagicMock
from datetime import datetime
from youtube_transcript_api import NoTranscriptFound, TranscriptsDisabled
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.youtube_transcript_scraper import ( # noq... | { "id": mock_video_id, "title": mock_metadata["title"], "channel": mock_metadata["channelTitle"], "published_at": datetime.fromisoformat(mock_metadata["publishedAt"].replace("Z", "")), } | assert | collection | atomic-forge/tools/youtube_transcript_scraper/tests/test_youtube_transcript_scraper.py | test_youtube_transcript_tool | 53 | null | |
BrainBlend-AI/atomic-agents | from atomic_agents.context import SystemPromptGenerator, BaseDynamicContextProvider
def test_system_prompt_generator_default_initialization():
generator = SystemPromptGenerator()
assert generator.background == ["This is a conversation with a helpful and friendly AI assistant."]
assert generator.steps == []... | {} | assert | collection | atomic-agents/tests/context/test_system_prompt_generator.py | test_system_prompt_generator_default_initialization | 21 | null | |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import AsyncMock, MagicMock, patch
from atomic_agents.connectors.mcp import (
MCPDefinitionService,
MCPToolDefinition,
MCPResourceDefinition,
MCPPromptDefinition,
MCPTransportType,
)
def mock_client_session():
mock_session = AsyncMock()
# Setup mock respon... | [] | assert | collection | atomic-agents/tests/connectors/mcp/test_mcp_definition_service.py | test_fetch_tool_definitions_from_session_no_tools | 483 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, MagicMock
from datetime import datetime
from youtube_transcript_api import NoTranscriptFound, TranscriptsDisabled
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.youtube_transcript_scraper import ( # noq... | 10.0 | assert | numeric_literal | atomic-forge/tools/youtube_transcript_scraper/tests/test_youtube_transcript_scraper.py | test_youtube_transcript_tool | 51 | null | |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_base_tool_schema_resolution():
"""Test that input_schema and output_schema return correct types (not BaseIOSchema)"""
class CustomInput(BaseIOSchema):
"""Custom input schema for testing"""
... | CustomOutput | assert | variable | atomic-agents/tests/base/test_base_tool.py | test_base_tool_schema_resolution | 121 | null | |
BrainBlend-AI/atomic-agents | import pytest
from typing import Any, Dict, List, Optional, Union
from atomic_agents import BaseIOSchema
from atomic_agents.connectors.mcp import SchemaTransformer
class TestCreateModelFromSchema:
def test_empty_object_schema(self):
schema = {"type": "object"}
model = SchemaTransformer.create_mod... | 1 | assert | numeric_literal | atomic-agents/tests/connectors/mcp/test_schema_transformer.py | test_empty_object_schema | TestCreateModelFromSchema | 114 | null |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import AsyncMock, MagicMock, patch
from atomic_agents.connectors.mcp import (
MCPDefinitionService,
MCPToolDefinition,
MCPResourceDefinition,
MCPPromptDefinition,
MCPTransportType,
)
def mock_client_session():
mock_session = AsyncMock()
# Setup mock respon... | 1 | assert | numeric_literal | atomic-agents/tests/connectors/mcp/test_mcp_definition_service.py | test_fetch_resources_from_session | 530 | null | |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_base_tool_with_config():
config = BaseToolConfig(title="Custom Title", description="Custom description")
tool = MockTool[MockInputSchema, MockOutputSchema](config=config)
assert tool.tool_name == | "Custom Title" | assert | string_literal | atomic-agents/tests/base/test_base_tool.py | test_base_tool_with_config | 56 | null | |
BrainBlend-AI/atomic-agents | import unittest
from unittest.mock import patch, Mock
import requests
import sys
import os
from bs4 import BeautifulSoup
from readability import Document
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.webpage_scraper import ( # noqa: E402
WebpageScraperTool,
Webp... | expected) | self.assertEqual | variable | atomic-forge/tools/webpage_scraper/tests/test_webpage_scraper.py | test_clean_markdown | TestWebpageScraperTool | 134 | null |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from aiohttp import ClientSession
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.searxng_search import ( # noqa: E402
SearXNGSearchTool,
SearXNGSearchToolInputSchema,
Sea... | "news" | assert | string_literal | atomic-forge/tools/searxng_search/tests/test_searxng_search.py | test_searxng_search_tool_with_category | 64 | null | |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import Mock, call, patch
from pydantic import BaseModel, Field
import instructor
from atomic_agents import (
BaseIOSchema,
AtomicAgent,
AgentConfig,
BasicChatInputSchema,
BasicChatOutputSchema,
)
from atomic_agents.context import ChatHistory, SystemPromptGenerator, B... | 30 | assert | numeric_literal | atomic-agents/tests/agents/test_atomic_agent.py | test_get_context_token_count_basic | 796 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
import asyncio
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.bocha_search import ( # noqa: E402
BoChaSearchTool,
BoChaSearchToolInputSchema... | 1 | assert | numeric_literal | atomic-forge/tools/bocha_search/tests/test_bocha_search.py | test_bocha_search_tool_missing_fields | 72 | null | |
BrainBlend-AI/atomic-agents | import uuid
from pydantic import BaseModel
import pytest
from atomic_agents import BaseIOSchema
from atomic_agents.utils import format_tool_message
def test_format_tool_message_with_complex_model():
class ComplexToolCall(BaseIOSchema):
"""Mock complex tool call schema"""
nested: dict
list_... | '{"nested": {"key": "value"}, "list_field": [1, 2, 3]}' | assert | string_literal | atomic-agents/tests/utils/test_format_tool_message.py | test_format_tool_message_with_complex_model | 90 | null | |
BrainBlend-AI/atomic-agents | from enum import Enum
import pytest
import json
from typing import List, Dict, Union
from pathlib import Path
from pydantic import Field
from atomic_agents.context import ChatHistory, Message
from atomic_agents import BaseIOSchema
import instructor
def history():
return ChatHistory(max_messages=5)
def test_add_m... | 1 | assert | numeric_literal | atomic-agents/tests/context/test_chat_history.py | test_add_message | 87 | null | |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_base_tool_config_with_values():
config = BaseToolConfig(title="Test Tool", description="Test description")
assert config.title == | "Test Tool" | assert | string_literal | atomic-agents/tests/base/test_base_tool.py | test_base_tool_config_with_values | 36 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from aiohttp import ClientSession
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.searxng_search import ( # noqa: E402
SearXNGSearchTool,
SearXNGSearchToolInputSchema,
Sea... | "Result Missing Query" | assert | string_literal | atomic-forge/tools/searxng_search/tests/test_searxng_search.py | test_searxng_search_tool_missing_fields | 98 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from aiohttp import ClientSession
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.searxng_search import ( # noqa: E402
SearXNGSearchTool,
SearXNGSearchToolInputSchema,
Sea... | 2 | assert | numeric_literal | atomic-forge/tools/searxng_search/tests/test_searxng_search.py | test_searxng_search_tool_missing_fields | 97 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from aiohttp import ClientSession
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.searxng_search import ( # noqa: E402
SearXNGSearchTool,
SearXNGSearchToolInputSchema,
Sea... | 1 | assert | numeric_literal | atomic-forge/tools/searxng_search/tests/test_searxng_search.py | test_searxng_search_tool_with_category | 60 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
import asyncio
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.bocha_search import ( # noqa: E402
BoChaSearchTool,
BoChaSearchToolInputSchema... | payload_sent["exclude"] | assert | complex_expr | atomic-forge/tools/bocha_search/tests/test_bocha_search.py | test_bocha_search_tool_config_params_real_case_cn | 224 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, MagicMock
from datetime import datetime
from youtube_transcript_api import NoTranscriptFound, TranscriptsDisabled
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.youtube_transcript_scraper import ( # noq... | [] | assert | collection | atomic-forge/tools/youtube_transcript_scraper/tests/test_youtube_transcript_scraper.py | test_youtube_transcript_tool | 52 | null | |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_base_tool_initialization_without_type_parameters():
tool = MockTool()
assert tool.tool_name == | "BaseIOSchema" | assert | string_literal | atomic-agents/tests/base/test_base_tool.py | test_base_tool_initialization_without_type_parameters | 42 | null | |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import patch
from atomic_agents.utils.token_counter import (
TokenCounter,
TokenCountResult,
TokenCountError,
get_token_counter,
)
class TestTokenCounter:
@patch("litellm.get_max_tokens")
@patch("litellm.token_counter")
def test_count_context(self, mock_tok... | 70 | assert | numeric_literal | atomic-agents/tests/utils/test_token_counter.py | test_count_context | TestTokenCounter | 180 | null |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_base_tool_initialization():
tool = MockTool[MockInputSchema, MockOutputSchema]()
assert tool.tool_name == "MockInputSchema"
assert tool.tool_description == | "Mock input schema for testing" | assert | string_literal | atomic-agents/tests/base/test_base_tool.py | test_base_tool_initialization | 50 | null | |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import Mock, call, patch
from pydantic import BaseModel, Field
import instructor
from atomic_agents import (
BaseIOSchema,
AtomicAgent,
AgentConfig,
BasicChatInputSchema,
BasicChatOutputSchema,
)
from atomic_agents.context import ChatHistory, SystemPromptGenerator, B... | 1 | assert | numeric_literal | atomic-agents/tests/agents/test_atomic_agent.py | test_run_async_stream | 416 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from aiohttp import ClientSession
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.searxng_search import ( # noqa: E402
SearXNGSearchTool,
SearXNGSearchToolInputSchema,
Sea... | "This is a test result content with category." | assert | string_literal | atomic-forge/tools/searxng_search/tests/test_searxng_search.py | test_searxng_search_tool_with_category | 63 | null | |
BrainBlend-AI/atomic-agents | import uuid
from pydantic import BaseModel
import pytest
from atomic_agents import BaseIOSchema
from atomic_agents.utils import format_tool_message
def test_format_tool_message_without_tool_id():
tool_call = MockToolCall(param1="test", param2=42)
result = format_tool_message(tool_call)
assert isinstance(... | '{"param1": "test", "param2": 42}' | assert | string_literal | atomic-agents/tests/utils/test_format_tool_message.py | test_format_tool_message_without_tool_id | 38 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from aiohttp import ClientSession
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.searxng_search import ( # noqa: E402
SearXNGSearchTool,
SearXNGSearchToolInputSchema,
Sea... | str(excinfo.value) | assert | func_call | atomic-forge/tools/searxng_search/tests/test_searxng_search.py | test_searxng_search_tool_error | 266 | null | |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import Mock, call, patch
from pydantic import BaseModel, Field
import instructor
from atomic_agents import (
BaseIOSchema,
AtomicAgent,
AgentConfig,
BasicChatInputSchema,
BasicChatOutputSchema,
)
from atomic_agents.context import ChatHistory, SystemPromptGenerator, B... | 3 | assert | numeric_literal | atomic-agents/tests/agents/test_atomic_agent.py | test_messages_sync_after_run | 351 | null | |
BrainBlend-AI/atomic-agents | import unittest
from unittest.mock import patch, Mock
import requests
import sys
import os
from bs4 import BeautifulSoup
from readability import Document
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.webpage_scraper import ( # noqa: E402
WebpageScraperTool,
Webp... | str(soup)) | self.assertEqual | func_call | atomic-forge/tools/webpage_scraper/tests/test_webpage_scraper.py | test_extract_main_content_fallbacks | TestWebpageScraperTool | 220 | null |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import patch
from atomic_agents.utils.token_counter import (
TokenCounter,
TokenCountResult,
TokenCountError,
get_token_counter,
)
class TestTokenCountResult:
def test_creation_with_all_fields(self):
result = TokenCountResult(
total=100,
... | 20 | assert | numeric_literal | atomic-agents/tests/utils/test_token_counter.py | test_creation_with_all_fields | TestTokenCountResult | 27 | null |
BrainBlend-AI/atomic-agents | import uuid
from pydantic import BaseModel
import pytest
from atomic_agents import BaseIOSchema
from atomic_agents.utils import format_tool_message
def test_format_tool_message_with_complex_model():
class ComplexToolCall(BaseIOSchema):
"""Mock complex tool call schema"""
nested: dict
list_... | "ComplexToolCall" | assert | string_literal | atomic-agents/tests/utils/test_format_tool_message.py | test_format_tool_message_with_complex_model | 89 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
import asyncio
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.bocha_search import ( # noqa: E402
BoChaSearchTool,
BoChaSearchToolInputSchema... | 0 | assert | numeric_literal | atomic-forge/tools/bocha_search/tests/test_bocha_search.py | test_bocha_search_tool_no_results | 147 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.tavily_search import ( # noqa: E402
TavilySearchTool,
TavilySearchToolInputSchema,
Tavily... | 1 | assert | numeric_literal | atomic-forge/tools/tavily_search/tests/test_tavily_seach.py | test_tavily_search_tool_sync_run_method | 103 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, MagicMock
from datetime import datetime
from youtube_transcript_api import NoTranscriptFound, TranscriptsDisabled
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.youtube_transcript_scraper import ( # noq... | "Never gonna give you up Never gonna let you down" | assert | string_literal | atomic-forge/tools/youtube_transcript_scraper/tests/test_youtube_transcript_scraper.py | test_youtube_transcript_tool | 50 | null | |
BrainBlend-AI/atomic-agents | import unittest
from unittest.mock import patch, Mock
import requests
import sys
import os
from bs4 import BeautifulSoup
from readability import Document
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.webpage_scraper import ( # noqa: E402
WebpageScraperTool,
Webp... | 1_000_000) | self.assertEqual | numeric_literal | atomic-forge/tools/webpage_scraper/tests/test_webpage_scraper.py | test_tool_config | TestWebpageScraperTool | 310 | null |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_mock_tool_run():
tool = MockTool[MockInputSchema, MockOutputSchema]()
result = tool.run(MockInputSchema(query="mock query"))
assert isinstance(result, MockOutputSchema)
assert result.result == | "Mock result" | assert | string_literal | atomic-agents/tests/base/test_base_tool.py | test_mock_tool_run | 71 | null | |
BrainBlend-AI/atomic-agents | from atomic_agents.context import SystemPromptGenerator, BaseDynamicContextProvider
def test_system_prompt_generator_custom_initialization():
background = ["Custom background"]
steps = ["Step 1", "Step 2"]
output_instructions = ["Custom instruction"]
context_providers = {
"provider1": MockConte... | background | assert | variable | atomic-agents/tests/context/test_system_prompt_generator.py | test_system_prompt_generator_custom_initialization | 37 | null | |
BrainBlend-AI/atomic-agents | import pytest
from typing import Any, Dict, List, Optional, Union
from atomic_agents import BaseIOSchema
from atomic_agents.connectors.mcp import SchemaTransformer
class TestSchemaTransformer:
def test_string_type_required(self):
prop_schema = {"type": "string", "description": "A string field"}
re... | True | assert | bool_literal | atomic-agents/tests/connectors/mcp/test_schema_transformer.py | test_string_type_required | TestSchemaTransformer | 14 | null |
BrainBlend-AI/atomic-agents | import unittest
from unittest.mock import patch, Mock
import requests
import sys
import os
from bs4 import BeautifulSoup
from readability import Document
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.webpage_scraper import ( # noqa: E402
WebpageScraperTool,
Webp... | result) | self.assertNotIn | variable | atomic-forge/tools/webpage_scraper/tests/test_webpage_scraper.py | test_clean_markdown_triple_newlines | TestWebpageScraperTool | 146 | null |
BrainBlend-AI/atomic-agents | from atomic_agents.context import SystemPromptGenerator, BaseDynamicContextProvider
def test_system_prompt_generator_custom_initialization():
background = ["Custom background"]
steps = ["Step 1", "Step 2"]
output_instructions = ["Custom instruction"]
context_providers = {
"provider1": MockConte... | [ "Custom instruction", "Always respond using the proper JSON schema.", "Always use the available additional information and context to enhance the response.", ] | assert | collection | atomic-agents/tests/context/test_system_prompt_generator.py | test_system_prompt_generator_custom_initialization | 39 | null | |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import Mock, call, patch
from pydantic import BaseModel, Field
import instructor
from atomic_agents import (
BaseIOSchema,
AtomicAgent,
AgentConfig,
BasicChatInputSchema,
BasicChatOutputSchema,
)
from atomic_agents.context import ChatHistory, SystemPromptGenerator, B... | 2 | assert | numeric_literal | atomic-agents/tests/agents/test_atomic_agent.py | test_messages_sync_after_run | 363 | null | |
BrainBlend-AI/atomic-agents | import uuid
from pydantic import BaseModel
import pytest
from atomic_agents import BaseIOSchema
from atomic_agents.utils import format_tool_message
def test_format_tool_message_with_provided_tool_id():
tool_call = MockToolCall(param1="test", param2=42)
tool_id = "test-tool-id"
result = format_tool_message... | { "id": "test-tool-id", "type": "function", "function": {"name": "MockToolCall", "arguments": '{"param1": "test", "param2": 42}'}, } | assert | collection | atomic-agents/tests/utils/test_format_tool_message.py | test_format_tool_message_with_provided_tool_id | 22 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from aiohttp import ClientSession
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.searxng_search import ( # noqa: E402
SearXNGSearchTool,
SearXNGSearchToolInputSchema,
Sea... | Exception) | pytest.raises | variable | atomic-forge/tools/searxng_search/tests/test_searxng_search.py | test_searxng_search_tool_error | 262 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
import asyncio
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.bocha_search import ( # noqa: E402
BoChaSearchTool,
BoChaSearchToolInputSchema... | ["Mock Title"] * 3 | assert | collection | atomic-forge/tools/bocha_search/tests/test_bocha_search.py | test_bocha_search_tool_concurrent_queries | 194 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.tavily_search import ( # noqa: E402
TavilySearchTool,
TavilySearchToolInputSchema,
Tavily... | 0 | assert | numeric_literal | atomic-forge/tools/tavily_search/tests/test_tavily_seach.py | test_tavily_search_tool_no_results | 178 | null | |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import patch
from atomic_agents.utils.token_counter import (
TokenCounter,
TokenCountResult,
TokenCountError,
get_token_counter,
)
class TestTokenCountResult:
def test_creation_with_all_fields(self):
result = TokenCountResult(
total=100,
... | 50 | assert | numeric_literal | atomic-agents/tests/utils/test_token_counter.py | test_creation_with_all_fields | TestTokenCountResult | 26 | null |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, MagicMock
from datetime import datetime
from youtube_transcript_api import NoTranscriptFound, TranscriptsDisabled
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.youtube_transcript_scraper import ( # noq... | Exception) | pytest.raises | variable | atomic-forge/tools/youtube_transcript_scraper/tests/test_youtube_transcript_scraper.py | test_youtube_transcript_tool_no_transcript | 108 | null | |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_base_tool_with_custom_title():
config = BaseToolConfig(title="Custom Tool Name")
tool = MockTool[MockInputSchema, MockOutputSchema](config=config)
assert tool.tool_name == | "Custom Tool Name" | assert | string_literal | atomic-agents/tests/base/test_base_tool.py | test_base_tool_with_custom_title | 63 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
import asyncio
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.bocha_search import ( # noqa: E402
BoChaSearchTool,
BoChaSearchToolInputSchema... | 5 | assert | numeric_literal | atomic-forge/tools/bocha_search/tests/test_bocha_search.py | test_bocha_search_tool_count | 123 | null | |
BrainBlend-AI/atomic-agents | from enum import Enum
import pytest
import json
from typing import List, Dict, Union
from pathlib import Path
from pydantic import Field
from atomic_agents.context import ChatHistory, Message
from atomic_agents import BaseIOSchema
import instructor
def history():
return ChatHistory(max_messages=5)
def test_get_h... | 2 | assert | numeric_literal | atomic-agents/tests/context/test_chat_history.py | test_get_history | 110 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
import asyncio
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.bocha_search import ( # noqa: E402
BoChaSearchTool,
BoChaSearchToolInputSchema... | 10 | assert | numeric_literal | atomic-forge/tools/bocha_search/tests/test_bocha_search.py | test_bocha_search_tool_count | 128 | null | |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import patch
from atomic_agents.utils.token_counter import (
TokenCounter,
TokenCountResult,
TokenCountError,
get_token_counter,
)
class TestTokenCountResult:
def test_creation_with_all_fields(self):
result = TokenCountResult(
total=100,
... | 30 | assert | numeric_literal | atomic-agents/tests/utils/test_token_counter.py | test_creation_with_all_fields | TestTokenCountResult | 25 | null |
BrainBlend-AI/atomic-agents | import pytest
from typing import Any, Dict, List, Optional, Union
from atomic_agents import BaseIOSchema
from atomic_agents.connectors.mcp import SchemaTransformer
class TestSchemaTransformer:
def test_integer_type_with_default(self):
prop_schema = {"type": "integer", "description": "An integer field", "... | int | assert | variable | atomic-agents/tests/connectors/mcp/test_schema_transformer.py | test_integer_type_with_default | TestSchemaTransformer | 26 | null |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
import asyncio
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.bocha_search import ( # noqa: E402
BoChaSearchTool,
BoChaSearchToolInputSchema... | "Sync Result" | assert | string_literal | atomic-forge/tools/bocha_search/tests/test_bocha_search.py | test_bocha_search_tool_sync_run | 94 | null | |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_base_tool_initialization_without_type_parameters():
tool = MockTool()
assert tool.tool_name == "BaseIOSchema"
assert tool.tool_description == | "Base schema for input/output in the Atomic Agents framework." | assert | string_literal | atomic-agents/tests/base/test_base_tool.py | test_base_tool_initialization_without_type_parameters | 43 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from aiohttp import ClientSession
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.searxng_search import ( # noqa: E402
SearXNGSearchTool,
SearXNGSearchToolInputSchema,
Sea... | "https://example.com/test-category" | assert | string_literal | atomic-forge/tools/searxng_search/tests/test_searxng_search.py | test_searxng_search_tool_with_category | 62 | null | |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_base_tool_config_creation():
config = BaseToolConfig()
assert config.title is | None | assert | none_literal | atomic-agents/tests/base/test_base_tool.py | test_base_tool_config_creation | 30 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
import asyncio
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.bocha_search import ( # noqa: E402
BoChaSearchTool,
BoChaSearchToolInputSchema... | "oneMonth" | assert | string_literal | atomic-forge/tools/bocha_search/tests/test_bocha_search.py | test_bocha_search_tool_config_params_real_case_cn | 221 | null | |
BrainBlend-AI/atomic-agents | from enum import Enum
import pytest
import json
from typing import List, Dict, Union
from pathlib import Path
from pydantic import Field
from atomic_agents.context import ChatHistory, Message
from atomic_agents import BaseIOSchema
import instructor
def history():
return ChatHistory(max_messages=5)
def test_initi... | 5 | assert | numeric_literal | atomic-agents/tests/context/test_chat_history.py | test_initialization | 76 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.tavily_search import ( # noqa: E402
TavilySearchTool,
TavilySearchToolInputSchema,
Tavily... | 5 | assert | numeric_literal | atomic-forge/tools/tavily_search/tests/test_tavily_seach.py | test_tavily_search_tool_with_max_results | 140 | null | |
BrainBlend-AI/atomic-agents | import pytest
from unittest.mock import Mock, call, patch
from pydantic import BaseModel, Field
import instructor
from atomic_agents import (
BaseIOSchema,
AtomicAgent,
AgentConfig,
BasicChatInputSchema,
BasicChatOutputSchema,
)
from atomic_agents.context import ChatHistory, SystemPromptGenerator, B... | 0 | assert | numeric_literal | atomic-agents/tests/agents/test_atomic_agent.py | test_hook_initialization | 480 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, MagicMock
from datetime import datetime
from youtube_transcript_api import NoTranscriptFound, TranscriptsDisabled
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.youtube_transcript_scraper import ( # noq... | "dQw4w9WgXcQ" | assert | string_literal | atomic-forge/tools/youtube_transcript_scraper/tests/test_youtube_transcript_scraper.py | test_extract_video_id | 151 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.tavily_search import ( # noqa: E402
TavilySearchTool,
TavilySearchToolInputSchema,
Tavily... | "Valid Result" | assert | string_literal | atomic-forge/tools/tavily_search/tests/test_tavily_seach.py | test_tavily_search_tool_missing_fields | 69 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from aiohttp import ClientSession
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.searxng_search import ( # noqa: E402
SearXNGSearchTool,
SearXNGSearchToolInputSchema,
Sea... | 0 | assert | numeric_literal | atomic-forge/tools/searxng_search/tests/test_searxng_search.py | test_searxng_search_tool_no_results | 240 | null | |
BrainBlend-AI/atomic-agents | import unittest
from unittest.mock import patch, Mock
import requests
import sys
import os
from bs4 import BeautifulSoup
from readability import Document
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.webpage_scraper import ( # noqa: E402
WebpageScraperTool,
Webp... | "Test Page") | self.assertEqual | string_literal | atomic-forge/tools/webpage_scraper/tests/test_webpage_scraper.py | test_extract_metadata | TestWebpageScraperTool | 108 | null |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_base_tool_initialization():
tool = MockTool[MockInputSchema, MockOutputSchema]()
assert tool.tool_name == | "MockInputSchema" | assert | string_literal | atomic-agents/tests/base/test_base_tool.py | test_base_tool_initialization | 49 | null | |
BrainBlend-AI/atomic-agents | from pydantic import BaseModel
from atomic_agents import BaseToolConfig, BaseTool, BaseIOSchema
def test_base_tool_output_schema():
tool = MockTool[MockInputSchema, MockOutputSchema]()
assert tool.output_schema == | MockOutputSchema | assert | variable | atomic-agents/tests/base/test_base_tool.py | test_base_tool_output_schema | 81 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.tavily_search import ( # noqa: E402
TavilySearchTool,
TavilySearchToolInputSchema,
Tavily... | 2 | assert | numeric_literal | atomic-forge/tools/tavily_search/tests/test_tavily_seach.py | test_tavily_search_tool_missing_fields | 67 | null | |
BrainBlend-AI/atomic-agents | import os
import sys
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from types import SimpleNamespace
import asyncio
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from tool.bocha_search import ( # noqa: E402
BoChaSearchTool,
BoChaSearchToolInputSchema... | "Valid Result" | assert | string_literal | atomic-forge/tools/bocha_search/tests/test_bocha_search.py | test_bocha_search_tool_missing_fields | 73 | null | |
fronzbot/blinkpy | from unittest import mock
from unittest import IsolatedAsyncioTestCase
import time
from blinkpy.blinkpy import Blink, BlinkSetupError, LoginError, TokenRefreshFailed
from blinkpy.sync_module import BlinkOwl, BlinkLotus
from blinkpy.helpers.constants import __version__
SPECIAL = "!@#$%^&*()_+-=[]{}|/<>?,.'"
class Test... | None) | self.assertEqual | none_literal | tests/test_blinkpy.py | test_throttle | TestBlinkSetup | 69 | null |
fronzbot/blinkpy | import ssl
import urllib.parse
from unittest import mock
from unittest import IsolatedAsyncioTestCase
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler
from blinkpy.sync_module import BlinkSyncModule
from blinkpy.camera import BlinkCameraMini
from blinkpy.livestream import BlinkLiveStr... | "1.2.3.4") | self.assertEqual | string_literal | tests/test_livestream.py | test_livestream_init | TestBlinkLiveStream | 76 | null |
fronzbot/blinkpy | import datetime
import logging
from unittest import IsolatedAsyncioTestCase
from unittest import mock
import aiofiles
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler, to_alphanumeric
from blinkpy.sync_module import (
BlinkSyncModule,
BlinkOwl,
BlinkLotus,
LocalStorageM... | "test") | self.assertEqual | string_literal | tests/test_sync_module.py | test_sync_attributes | TestBlinkSyncModule | 237 | null |
fronzbot/blinkpy | import datetime
import logging
from unittest import IsolatedAsyncioTestCase
from unittest import mock
import aiofiles
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler, to_alphanumeric
from blinkpy.sync_module import (
BlinkSyncModule,
BlinkOwl,
BlinkLotus,
LocalStorageM... | "432") | self.assertEqual | string_literal | tests/test_sync_module.py | test_local_storage_media_item | TestBlinkSyncModule | 559 | null |
fronzbot/blinkpy | import time
from unittest import mock
from unittest import IsolatedAsyncioTestCase
from aiohttp import ClientConnectionError, ContentTypeError
from blinkpy.auth import (
Auth,
BlinkTwoFARequiredError,
TokenRefreshFailed,
BlinkBadResponse,
UnauthorizedError,
)
import blinkpy.helpers.constants as cons... | "baz1") | self.assertEqual | string_literal | tests/test_auth.py | test_refresh_tokens | TestAuth | 180 | null |
fronzbot/blinkpy | import importlib
from unittest import mock
from unittest import IsolatedAsyncioTestCase
import pytest
import blinkpy.api
from blinkpy.blinkpy import Blink
from blinkpy.sync_module import BlinkSyncModule
from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell
from blinkpy.livestream import BlinkLiveStrea... | None) | self.assertEqual | none_literal | tests/test_cameras.py | test_missing_attributes | TestBlinkCameraSetup | 111 | null |
fronzbot/blinkpy | from unittest import mock
from unittest import IsolatedAsyncioTestCase
from blinkpy import api
from blinkpy.blinkpy import Blink, util
from blinkpy.auth import Auth
import tests.mock_responses as mresp
COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"}
COMMAND_COMPLETE = {"complete": True, "status_code": 908}
C... | COMMAND_DONE) | self.assertEqual | variable | tests/test_api.py | test_request_command_done | TestAPI | 71 | null |
fronzbot/blinkpy | from unittest import mock
from unittest import IsolatedAsyncioTestCase
from blinkpy import api
from blinkpy.blinkpy import Blink, util
from blinkpy.auth import Auth
import tests.mock_responses as mresp
COMMAND_RESPONSE = {"network_id": "12345", "id": "54321"}
COMMAND_COMPLETE = {"complete": True, "status_code": 908}
C... | {"config": "values"}) | self.assertEqual | collection | tests/test_api.py | test_request_get_config | TestAPI | 164 | null |
fronzbot/blinkpy | from unittest import mock
from unittest import IsolatedAsyncioTestCase
import pytest
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler
from blinkpy.sync_module import BlinkOwl
from blinkpy.camera import BlinkCameraMini
class TestBlinkSyncModule(IsolatedAsyncioTestCase):
def setUp(... | "test" in owl.cameras) | self.assertTrue | string_literal | tests/test_mini_as_sync.py | test_owl_start | TestBlinkSyncModule | 48 | null |
fronzbot/blinkpy | import json
from unittest import mock
from unittest import IsolatedAsyncioTestCase
from random import shuffle
import pytest
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler
from blinkpy.sync_module import BlinkSyncModule
from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoo... | {"foo": False}) | self.assertEqual | collection | tests/test_sync_functions.py | test_check_new_videos | TestBlinkSyncModule | 73 | null |
fronzbot/blinkpy | import json
from unittest import mock
from unittest import IsolatedAsyncioTestCase
from random import shuffle
import pytest
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler
from blinkpy.sync_module import BlinkSyncModule
from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoo... | "12345678") | self.assertEqual | string_literal | tests/test_sync_functions.py | test_sync_start | TestBlinkSyncModule | 159 | null |
fronzbot/blinkpy | from unittest import mock, IsolatedAsyncioTestCase
import time
import aiofiles
from io import BufferedIOBase
from blinkpy.helpers.util import (
json_load,
json_save,
Throttle,
time_to_seconds,
gen_uid,
get_time,
merge_dicts,
backoff_seconds,
BlinkException,
)
from blinkpy.helpers imp... | 1 | assert | numeric_literal | tests/test_util.py | test_throttle_per_instance | TestUtil | 75 | null |
fronzbot/blinkpy | import time
from unittest import mock
from unittest import IsolatedAsyncioTestCase
from aiohttp import ClientConnectionError, ContentTypeError
from blinkpy.auth import (
Auth,
BlinkTwoFARequiredError,
TokenRefreshFailed,
BlinkBadResponse,
UnauthorizedError,
)
import blinkpy.helpers.constants as cons... | login_data) | self.assertDictEqual | variable | tests/test_auth.py | test_barebones_init | TestAuth | 56 | null |
fronzbot/blinkpy | import datetime
from unittest import mock
from unittest import IsolatedAsyncioTestCase
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler
from blinkpy.sync_module import BlinkSyncModule
from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell
import tests.mock_responses as ... | 0 | assert | numeric_literal | tests/test_camera_functions.py | test_save_recent_clips | TestBlinkCameraSetup | 312 | null |
fronzbot/blinkpy | from unittest import mock, IsolatedAsyncioTestCase
import time
import aiofiles
from io import BufferedIOBase
from blinkpy.helpers.util import (
json_load,
json_save,
Throttle,
time_to_seconds,
gen_uid,
get_time,
merge_dicts,
backoff_seconds,
BlinkException,
)
from blinkpy.helpers imp... | 1) | self.assertEqual | numeric_literal | tests/test_util.py | test_blink_exception | TestUtil | 221 | null |
fronzbot/blinkpy | import pytest
from unittest.mock import Mock, AsyncMock, patch
from blinkpy.helpers.pkce import generate_pkce_pair
from blinkpy import api
from blinkpy.auth import Auth, BlinkTwoFARequiredError
def test_pkce_generation():
"""Test PKCE pair generation."""
verifier, challenge = generate_pkce_pair()
# Verify... | verifier | assert | variable | tests/test_oauth.py | test_pkce_generation | 22 | null | |
fronzbot/blinkpy | import datetime
from unittest import mock
from unittest import IsolatedAsyncioTestCase
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler
from blinkpy.sync_module import BlinkSyncModule
from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell
import tests.mock_responses as ... | record1) | self.assertEqual | variable | tests/test_camera_functions.py | test_recent_video_clips | TestBlinkCameraSetup | 159 | null |
fronzbot/blinkpy | from unittest import mock, IsolatedAsyncioTestCase
import time
import aiofiles
from io import BufferedIOBase
from blinkpy.helpers.util import (
json_load,
json_save,
Throttle,
time_to_seconds,
gen_uid,
get_time,
merge_dicts,
backoff_seconds,
BlinkException,
)
from blinkpy.helpers imp... | 4) | self.assertEqual | numeric_literal | tests/test_util.py | test_gen_uid | TestUtil | 189 | null |
fronzbot/blinkpy | import json
from unittest import mock
from unittest import IsolatedAsyncioTestCase
from random import shuffle
import pytest
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler
from blinkpy.sync_module import BlinkSyncModule
from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoo... | "test") | self.assertEqual | string_literal | tests/test_sync_functions.py | test_sync_start | TestBlinkSyncModule | 156 | null |
fronzbot/blinkpy | import datetime
import logging
from unittest import IsolatedAsyncioTestCase
from unittest import mock
import aiofiles
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler, to_alphanumeric
from blinkpy.sync_module import (
BlinkSyncModule,
BlinkOwl,
BlinkLotus,
LocalStorageM... | 8675309) | self.assertEqual | numeric_literal | tests/test_sync_module.py | test_summary_with_only_network_id | TestBlinkSyncModule | 218 | null |
fronzbot/blinkpy | import datetime
from unittest import mock
from unittest import IsolatedAsyncioTestCase
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler
from blinkpy.sync_module import BlinkSyncModule
from blinkpy.camera import BlinkCamera, BlinkCameraMini, BlinkDoorbell
import tests.mock_responses as ... | "enable") | self.assertEqual | string_literal | tests/test_camera_functions.py | test_motion_detection_enable_disable | TestBlinkCameraSetup | 203 | null |
fronzbot/blinkpy | import datetime
import logging
from unittest import IsolatedAsyncioTestCase
from unittest import mock
import aiofiles
from blinkpy.blinkpy import Blink
from blinkpy.helpers.util import BlinkURLHandler, to_alphanumeric
from blinkpy.sync_module import (
BlinkSyncModule,
BlinkOwl,
BlinkLotus,
LocalStorageM... | True) | self.assertEqual | bool_literal | tests/test_sync_module.py | test_get_events | TestBlinkSyncModule | 106 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.