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 |
|---|---|---|---|---|---|---|---|---|---|
Upsonic/Upsonic | import pytest
import asyncio
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Task, Graph, Direct
from upsonic.graph.graph import TaskNode, DecisionFunc, DecisionLLM
pytestmark = pytest.mark.timeout(180)
@pytest.mark.asyncio
async def test_graph_decision_func():
"""Test G... | 1 | assert | numeric_literal | tests/smoke_tests/graphv1/test_graph.py | test_graph_decision_func | 210 | null | |
Upsonic/Upsonic | import asyncio
import os
import pytest
from unittest.mock import patch, AsyncMock
from contextlib import asynccontextmanager
from upsonic import Agent, Task
from upsonic.run.agent.output import AgentRunOutput
from upsonic.models import ModelResponse, TextPart
from upsonic.safety_engine import (
RuleBase,
Acti... | result.lower() | assert | func_call | tests/unit_tests/safety_engine/test_cybersecurity_policies.py | test_cybersecurity_block_malware | 71 | null | |
Upsonic/Upsonic | import pytest
import asyncio
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Task, Graph, Direct
from upsonic.graph.graph import TaskNode, DecisionFunc, DecisionLLM
pytestmark = pytest.mark.timeout(180)
@pytest.mark.asyncio
async def test_graph_initialization():
"""Test ... | 4 | assert | numeric_literal | tests/smoke_tests/graphv1/test_graph.py | test_graph_initialization | 21 | null | |
Upsonic/Upsonic | import pytest
import sqlite3
import time
from upsonic.graphv2.cache import (
InMemoryCache,
SqliteCache,
CachePolicy,
CacheEntry,
default_cache_key,
)
class TestCachePolicy:
def test_default_cache_key(self):
"""Test default cache key generation."""
state1 = {"count": 1, "messag... | key2 | assert | variable | tests/unit_tests/graph/test_graphv2_cache.py | test_default_cache_key | TestCachePolicy | 237 | null |
Upsonic/Upsonic | import pytest
import os
import tempfile
import json
import csv
from pathlib import Path
from typing import List
from upsonic.loaders import (
TextLoader, TextLoaderConfig,
CSVLoader, CSVLoaderConfig,
JSONLoader, JSONLoaderConfig,
XMLLoader, XMLLoaderConfig,
YAMLLoader, YAMLLoaderConfig,
Markdow... | 1 | assert | numeric_literal | tests/smoke_tests/loaders/test_loaders.py | test_csv_single_document | TestCSVLoader | 85 | null |
Upsonic/Upsonic | import sys
import pytest
from rich.console import Console
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Task, Team, Graph
from upsonic.eval import AccuracyEvaluator, AccuracyEvaluationResult, EvaluationScore
pytestmark = pytest.mark.timeout(300)
def _enable_print_capture()... | 1 | assert | numeric_literal | tests/smoke_tests/evals/test_accuracy_eval.py | test_accuracy_eval_agent | 97 | null | |
Upsonic/Upsonic | import json
from typing import Any, List
import pytest
from upsonic.agent.context_managers.context_management_middleware import (
CONTEXT_FULL_MESSAGE,
DEFAULT_KEEP_RECENT_COUNT,
ConversationSummary,
ContextManagementMiddleware,
SummarizedRequest,
SummarizedRequestPart,
SummarizedResponse,... | [] | assert | collection | tests/smoke_tests/agent/test_context_management_middleware.py | test_empty_messages | TestPruneToolCallHistory | 450 | null |
Upsonic/Upsonic | import pytest
from typing import List
from upsonic import Agent, Task
from upsonic.usage import RunUsage
def _assert_usage_positive(usage: RunUsage, label: str) -> None:
"""Assert that a RunUsage has meaningful positive values."""
assert usage.requests > 0, f"[{label}] Expected requests > 0, got {usage.reques... | 2 | assert | numeric_literal | tests/smoke_tests/agent/test_usage_tracking.py | test_agent_as_tool_usage_tracking | 192 | null | |
Upsonic/Upsonic | import sys
import pytest
from rich.console import Console
from upsonic import Agent, Task, Team
pytestmark = pytest.mark.timeout(120)
def _enable_print_capture() -> None:
"""Patch Rich console to use current sys.stdout so capsys captures agent/team prints."""
import upsonic.utils.printing as _printing
_p... | out | assert | variable | tests/smoke_tests/team/test_nested_team_route.py | test_route_nested_team_entity_routed | 73 | null | |
Upsonic/Upsonic | import pytest
from typing import List, Any
from upsonic import Agent, Chat
from upsonic.run.events.events import (
AgentEvent,
TextDeltaEvent,
ToolCallDeltaEvent,
ToolCallEvent,
ToolResultEvent,
PipelineStartEvent,
PipelineEndEvent,
RunStartedEvent,
RunCompletedEvent,
)
from upsonic... | 0 | assert | numeric_literal | tests/smoke_tests/chat/test_chat_event_streaming.py | test_chat_stream_events_basic | 83 | null | |
Upsonic/Upsonic | import pytest
from unittest.mock import Mock, AsyncMock, patch, MagicMock
from typing import List, Any
from upsonic.team.team import Team
from upsonic.tasks.tasks import Task
from upsonic.agent.agent import Agent
def test_team_initialization():
"""
Test Team initialization with basic parameters.
This tes... | str | assert | variable | tests/unit_tests/team/test_team.py | test_team_initialization | 87 | null | |
Upsonic/Upsonic | import unittest
import logging
import os
import tempfile
from unittest.mock import patch, MagicMock, call
from pathlib import Path
from upsonic.utils.logging_config import (
setup_logging,
setup_sentry,
get_logger,
set_module_log_level,
disable_logging,
get_current_log_levels,
get_env_log_l... | logging.DEBUG) | self.assertEqual | complex_expr | tests/unit_tests/test_logging_config.py | test_get_env_log_level_from_env | TestLoggingConfig | 53 | null |
Upsonic/Upsonic | import sys
import pytest
from rich.console import Console
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Task, Team, Graph
from upsonic.eval import AccuracyEvaluator, AccuracyEvaluationResult, EvaluationScore
pytestmark = pytest.mark.timeout(300)
def _enable_print_capture()... | team | assert | variable | tests/smoke_tests/evals/test_accuracy_eval.py | test_accuracy_eval_team_sequential | 230 | null | |
Upsonic/Upsonic | import pytest
from unittest.mock import Mock, AsyncMock, patch
from upsonic.agent.context_managers.call_manager import CallManager
from upsonic.agent.context_managers.task_manager import TaskManager
from upsonic.agent.context_managers.reliability_manager import ReliabilityManager
from upsonic.agent.context_managers.ll... | task | assert | variable | tests/unit_tests/agent/test_context_managers.py | test_call_manager_initialization | TestCallManager | 150 | null |
Upsonic/Upsonic | import sys
import pytest
from rich.console import Console
from io import StringIO
from contextlib import redirect_stdout
from typing import List
from upsonic import Agent, Task, Team, Graph
from upsonic.eval import (
ReliabilityEvaluator,
ReliabilityEvaluationResult,
ToolCallCheck,
)
from upsonic.tools imp... | 0 | assert | numeric_literal | tests/smoke_tests/evals/test_reliability_eval.py | _validate_reliability_result | 70 | null | |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.culture import Culture, CultureManager
def test_culture_creation():
"""Test creating Culture with the provided usage pattern."""
print("\n" + "=" * 70)
print("TEST 1: Culture Creation")
print("=" * 70)
my_culture = Culture(
des... | None | assert | none_literal | tests/smoke_tests/culture/test_culture_usage.py | test_culture_creation | 33 | null | |
Upsonic/Upsonic | import pytest
import sqlite3
import time
from upsonic.graphv2.cache import (
InMemoryCache,
SqliteCache,
CachePolicy,
CacheEntry,
default_cache_key,
)
class TestCacheEntry:
def test_cache_entry(self):
"""Test CacheEntry."""
entry = CacheEntry(value="test", timestamp=time.time()... | "test" | assert | string_literal | tests/unit_tests/graph/test_graphv2_cache.py | test_cache_entry | TestCacheEntry | 249 | null |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.reflection import ReflectionConfig
from io import StringIO
from contextlib import redirect_stdout
pytestmark = pytest.mark.timeout(120)
@pytest.mark.asyncio
async def test_reflection_config_attributes():
"""Test that reflection config attributes are prope... | 5 | assert | numeric_literal | tests/smoke_tests/agent/test_reflection.py | test_reflection_config_attributes | 132 | null | |
Upsonic/Upsonic | import pytest
from typing import List
from upsonic.text_splitter import (
CharacterChunker, CharacterChunkingConfig,
RecursiveChunker, RecursiveChunkingConfig,
JSONChunker, JSONChunkingConfig,
MarkdownChunker, MarkdownChunkingConfig,
PythonChunker, PythonChunkingConfig,
HTMLChunker, HTMLChunkin... | 1 | assert | numeric_literal | tests/smoke_tests/chunkers/test_chunkers.py | test_basic_character_chunking | TestCharacterChunker | 46 | null |
Upsonic/Upsonic | import pytest
import os
import tempfile
import shutil
from upsonic import Agent, Task
from upsonic.agent.deepagent import DeepAgent
from upsonic.agent.deepagent.backends import StateBackend, MemoryBackend, CompositeBackend
from upsonic.storage import InMemoryStorage, AsyncSqliteStorage
from io import StringIO
from cont... | True | assert | bool_literal | tests/smoke_tests/deepagent/test_deepagent.py | test_deepagent_planning_and_filesystem_state_backend | 59 | null | |
Upsonic/Upsonic | from upsonic import Agent, Task
from upsonic.culture import Culture
from upsonic.storage.memory import Memory
from upsonic.storage.sqlite import SqliteStorage
def test_example_1_culture_only():
"""
Example 1: Simple Culture usage with Agent and Task (no storage)
This demonstrates the basic usage patte... | 0 | assert | numeric_literal | tests/smoke_tests/culture/test_culture_simple_usage.py | test_example_1_culture_only | 49 | null | |
Upsonic/Upsonic | import asyncio
import os
import pytest
from unittest.mock import patch, AsyncMock
from contextlib import asynccontextmanager
from upsonic import Agent, Task
from upsonic.run.agent.output import AgentRunOutput
from upsonic.models import ModelResponse, TextPart
from upsonic.safety_engine import (
RuleBase,
Acti... | result.lower() | assert | func_call | tests/unit_tests/safety_engine/test_financial_policies.py | test_financial_info_block_credit_card | 71 | null | |
Upsonic/Upsonic | import pytest
from upsonic.graph.graph import (
Graph,
TaskNode,
TaskChain,
DecisionFunc,
DecisionLLM,
State,
)
from upsonic.tasks.tasks import Task
from upsonic.agent.base import BaseAgent
class TestGraphAddTask:
def test_graph_add_task_node(self):
"""Test adding a TaskNode."""
... | node | assert | variable | tests/unit_tests/graph/test_graph.py | test_graph_add_task_node | TestGraphAddTask | 98 | null |
Upsonic/Upsonic | import pytest
import asyncio
import os
import shutil
import sys
from unittest.mock import Mock, patch, AsyncMock
from typing import List, Dict, Any
from upsonic.knowledge_base.knowledge_base import KnowledgeBase
from upsonic.vectordb.providers.milvus import MilvusProvider
from upsonic.vectordb.config import MilvusConf... | "id2" | assert | string_literal | tests/unit_tests/rag/vectordb/test_milvus_knowledge_base.py | test_milvus_upsert_operations | TestMilvusKnowledgeBaseIntegration | 223 | null |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.exceptions import ExecutionTimeoutError
from upsonic.run.agent.output import AgentRunOutput
pytestmark = pytest.mark.timeout(120)
MODEL: str = "anthropic/claude-sonnet-4-5"
def test_do_without_timeout_completes_normally() -> None:
"""do() without timeou... | 0 | assert | numeric_literal | tests/smoke_tests/agent/test_partial_timeout.py | test_do_without_timeout_completes_normally | 209 | null | |
Upsonic/Upsonic | import pytest
from typing import List, Any
from upsonic import Agent, Chat
from upsonic.run.events.events import (
AgentEvent,
TextDeltaEvent,
ToolCallDeltaEvent,
ToolCallEvent,
ToolResultEvent,
PipelineStartEvent,
PipelineEndEvent,
RunStartedEvent,
RunCompletedEvent,
)
from upsonic... | None | assert | none_literal | tests/smoke_tests/chat/test_chat_event_streaming.py | test_chat_stream_tool_result_content | 230 | null | |
Upsonic/Upsonic | import pytest
import os
import tempfile
import shutil
from pathlib import Path
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Direct, Task
from upsonic.tools.builtin_tools import ImageGenerationTool
pytestmark = pytest.mark.timeout(180)
def temp_dir():
"""Create a tempo... | None | assert | none_literal | tests/smoke_tests/direct/test_image_input_output.py | test_agent_image_generation | 51 | null | |
Upsonic/Upsonic | import asyncio
import os
import sys
import time
import uuid
from typing import Any, Dict, List, Optional
from upsonic.session.agent import AgentSession, RunData
from upsonic.session.base import SessionType
from upsonic.storage.schemas import UserMemory
from upsonic.storage.mongo import AsyncMongoStorage
from upsonic.r... | 1 | assert | numeric_literal | tests/smoke_tests/memory/test_async_mongo_storage_comprehensive.py | test_session_delete | 745 | null | |
Upsonic/Upsonic | import sys
import pytest
import asyncio
from unittest.mock import Mock, patch, AsyncMock
from typing import List, Dict, Any
from upsonic.knowledge_base.knowledge_base import KnowledgeBase
from upsonic.vectordb.providers.chroma import ChromaProvider
from upsonic.vectordb.config import ChromaConfig, ConnectionConfig, Mo... | "test" | assert | string_literal | tests/unit_tests/rag/vectordb/test_chroma_knowledge_base.py | test_chroma_configuration_validation | TestChromaKnowledgeBaseIntegration | 389 | null |
Upsonic/Upsonic | import pytest
from typing import List
from upsonic import Agent, Task
from upsonic.usage import RunUsage
def _assert_usage_positive(usage: RunUsage, label: str) -> None:
"""Assert that a RunUsage has meaningful positive values."""
assert usage.requests > | 0 | assert | numeric_literal | tests/smoke_tests/agent/test_usage_tracking.py | _assert_usage_positive | 42 | null | |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.culture import Culture, CultureManager
def test_culture_creation():
"""Test creating Culture with the provided usage pattern."""
print("\n" + "=" * 70)
print("TEST 1: Culture Creation")
print("=" * 70)
my_culture = Culture(
des... | 5 | assert | numeric_literal | tests/smoke_tests/culture/test_culture_usage.py | test_culture_creation | 37 | null | |
Upsonic/Upsonic | import sys
import pytest
from rich.console import Console
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Task, Team, Graph
from upsonic.eval import AccuracyEvaluator, AccuracyEvaluationResult, EvaluationScore
pytestmark = pytest.mark.timeout(300)
def _enable_print_capture()... | 2 | assert | numeric_literal | tests/smoke_tests/evals/test_accuracy_eval.py | test_accuracy_eval_agent_multi_iteration | 139 | null | |
Upsonic/Upsonic | import asyncio
import os
import sys
import time
from typing import Any, Dict, List, Optional
from upsonic.session.agent import AgentSession, RunData
from upsonic.session.base import SessionType
from upsonic.storage.schemas import UserMemory
from upsonic.storage.mem0 import AsyncMem0Storage
from upsonic.run.agent.outpu... | 2 | assert | numeric_literal | tests/smoke_tests/memory/test_async_mem0_storage_comprehensive.py | test_session_crud | 355 | null | |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.exceptions import ExecutionTimeoutError
from upsonic.run.agent.output import AgentRunOutput
pytestmark = pytest.mark.timeout(120)
MODEL: str = "anthropic/claude-sonnet-4-5"
def test_partial_result_with_return_output() -> None:
"""With return_output=True... | True | assert | bool_literal | tests/smoke_tests/agent/test_partial_timeout.py | test_partial_result_with_return_output | 163 | null | |
Upsonic/Upsonic | from unittest import TestCase
from unittest.mock import patch, AsyncMock, MagicMock
from contextlib import asynccontextmanager
from upsonic import Agent, Task
from upsonic.run.agent.output import AgentRunOutput
from upsonic.models import ModelResponse, TextPart
from upsonic.messages import ToolCallPart
from upsonic.too... | str) | self.assertIsInstance | variable | tests/unit_tests/test_task_function_tool.py | test_agent_tool_function_call | AgentToolTestCase | 84 | null |
Upsonic/Upsonic | import pytest
from unittest.mock import Mock, AsyncMock, MagicMock, patch
from typing import Dict, Any
from upsonic.tools import ToolManager
from upsonic.tools.base import Tool, ToolResult, ToolDefinition
from upsonic.tools.metrics import ToolMetrics
from upsonic.tools.deferred import DeferredExecutionManager
class T... | result.error | assert | complex_expr | tests/unit_tests/tools/test_tool_manager.py | test_tool_manager_execute_tool_with_error | TestToolManager | 141 | null |
Upsonic/Upsonic | import pytest
import os
from pathlib import Path
from upsonic import Agent, Chat, Task
from upsonic.chat import SessionState, ChatMessage, SessionMetrics, ChatAttachment
PROJECT_ROOT = Path(__file__).parent.parent.parent.parent
pytestmark = pytest.mark.timeout(120)
@pytest.mark.asyncio
async def test_chat_streaming... | 1 | assert | numeric_literal | tests/smoke_tests/chat/test_chat.py | test_chat_streaming | 125 | null | |
Upsonic/Upsonic | import json
from typing import Any, List, Optional
import pytest
from upsonic.agent.context_managers.context_management_middleware import (
CONTEXT_FULL_MESSAGE,
ContextManagementMiddleware,
)
from upsonic.messages import (
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallP... | None | assert | none_literal | tests/smoke_tests/agent/test_context_management_stages.py | test_apply_skips_pruning_and_summarizes | TestApplyTextOnlyPipeline | 454 | null |
Upsonic/Upsonic | import pytest
import sqlite3
from upsonic.graphv2.checkpoint import (
Checkpoint,
StateSnapshot,
MemorySaver,
SqliteCheckpointer,
generate_checkpoint_id,
)
from datetime import datetime
class TestGenerateCheckpointId:
def test_generate_checkpoint_id(self):
"""Test checkpoint ID generat... | id2 | assert | variable | tests/unit_tests/graph/test_graphv2_checkpoint.py | test_generate_checkpoint_id | TestGenerateCheckpointId | 392 | null |
Upsonic/Upsonic | import os
import shutil
import tempfile
from pathlib import Path
from typing import Optional
import pytest
from upsonic import AutonomousAgent
from upsonic.agent import Agent
from upsonic.agent.autonomous_agent import (
AutonomousFilesystemToolKit,
AutonomousShellToolKit,
)
from upsonic.storage import InMemor... | None | assert | none_literal | tests/smoke_tests/autonomous_agent/test_autonomous_agent.py | test_default_storage_created | TestAutonomousAgentInitialization | 119 | null |
Upsonic/Upsonic | from upsonic import Agent, Task
from upsonic.culture import Culture
from upsonic.storage.memory import Memory
from upsonic.storage.sqlite import SqliteStorage
def test_example_1_culture_only():
"""
Example 1: Simple Culture usage with Agent and Task (no storage)
This demonstrates the basic usage patte... | None | assert | none_literal | tests/smoke_tests/culture/test_culture_simple_usage.py | test_example_1_culture_only | 48 | null | |
Upsonic/Upsonic | from typing import Any, List
import pytest
from upsonic import Agent, Task
from upsonic.run.agent.output import AgentRunOutput
def test_do_list_of_strings() -> None:
agent: Agent = Agent(model="anthropic/claude-sonnet-4-5", name="ListTester")
results: List[str] = agent.do(["What is 2+2?", "What is 3+3?"])
... | 0 | assert | numeric_literal | tests/smoke_tests/agent/test_agent_task_list.py | test_do_list_of_strings | 31 | null | |
Upsonic/Upsonic | import pytest
from unittest.mock import Mock
from typing import Dict, Any
from upsonic.tools.deferred import (
DeferredExecutionManager,
ExternalToolCall,
)
from upsonic.tools.base import ToolResult
class TestDeferredTools:
def deferred_manager(self):
"""Create a DeferredExecutionManager instance... | "123" | assert | string_literal | tests/unit_tests/tools/test_tool_deferred.py | test_deferred_tool_creation | TestDeferredTools | 33 | null |
Upsonic/Upsonic | import sys
import pytest
from rich.console import Console
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Task, Team, Graph
from upsonic.eval import AccuracyEvaluator, AccuracyEvaluationResult, EvaluationScore
pytestmark = pytest.mark.timeout(300)
def _enable_print_capture()... | score.score | assert | complex_expr | tests/smoke_tests/evals/test_accuracy_eval.py | _validate_accuracy_result | 41 | null | |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.tools import tool, ToolKit
from upsonic.tools.builtin_tools import WebSearchTool, CodeExecutionTool
pytestmark = pytest.mark.timeout(120)
MODEL = "anthropic/claude-sonnet-4-5"
def add_numbers(a: int, b: int) -> int:
"""Add two numbers together."""
re... | tm | assert | variable | tests/smoke_tests/tools/test_task_tool_management.py | test_task_ensure_tool_manager | 95 | null | |
Upsonic/Upsonic | import unittest
from unittest.mock import patch, AsyncMock, MagicMock
import pytest
from upsonic import Agent, Task
from upsonic.agent.deepagent import DeepAgent, Todo
from upsonic.storage.in_memory import InMemoryStorage
from upsonic.storage.memory.memory import Memory
class TestDeepAgentTodoManagement(unittest.Test... | list) | self.assertIsInstance | variable | tests/unit_tests/agent/test_deep_agent.py | test_deep_agent_todo_management | TestDeepAgentTodoManagement | 259 | null |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.culture import Culture, CultureManager
def test_culture_repeat_settings():
"""Test Culture with repeat enabled."""
print("\n" + "=" * 70)
print("TEST 7: Culture Repeat Settings")
print("=" * 70)
culture_with_repeat = Culture(
d... | 3 | assert | numeric_literal | tests/smoke_tests/culture/test_culture_usage.py | test_culture_repeat_settings | 213 | null | |
Upsonic/Upsonic | import json
from typing import Any, List
import pytest
from upsonic.agent.context_managers.context_management_middleware import (
CONTEXT_FULL_MESSAGE,
DEFAULT_KEEP_RECENT_COUNT,
ConversationSummary,
ContextManagementMiddleware,
SummarizedRequest,
SummarizedRequestPart,
SummarizedResponse,... | 0 | assert | numeric_literal | tests/smoke_tests/agent/test_context_management_middleware.py | test_tool_parts_counted_in_fallback | TestEstimateMessageTokens | 312 | null |
Upsonic/Upsonic | import json
import os
import time
from typing import Any, Dict, List, Optional
import pytest
FIRECRAWL_API_KEY: Optional[str] = os.getenv("FIRECRAWL_API_KEY")
pytestmark = [
pytest.mark.skipif(
not FIRECRAWL_API_KEY,
reason="FIRECRAWL_API_KEY not set; skipping Firecrawl smoke tests",
),
]
TE... | [] | assert | collection | tests/smoke_tests/tools/test_firecrawl_tools.py | test_selective_none_enabled | TestFunctions | 292 | null |
Upsonic/Upsonic | import json
from typing import Any, List, Optional
import pytest
from upsonic.agent.context_managers.context_management_middleware import (
CONTEXT_FULL_MESSAGE,
ContextManagementMiddleware,
)
from upsonic.messages import (
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallP... | [] | assert | collection | tests/smoke_tests/agent/test_context_management_stages.py | test_empty_messages | TestEdgeCases | 684 | null |
Upsonic/Upsonic | import json
from typing import Any, List, Optional
import pytest
from upsonic.agent.context_managers.context_management_middleware import (
CONTEXT_FULL_MESSAGE,
ContextManagementMiddleware,
)
from upsonic.messages import (
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallP... | True | assert | bool_literal | tests/smoke_tests/agent/test_context_management_stages.py | test_has_tool_related_messages_true | TestStage1ToolPruning | 294 | null |
Upsonic/Upsonic | import pytest
from typing import List, Dict, Any, Optional
from time import sleep
from upsonic.run.agent.output import AgentRunOutput
from upsonic.run.base import RunStatus
from upsonic.run.agent.input import AgentRunInput
from upsonic.tasks.tasks import Task
from upsonic.messages.messages import ModelMessage, ModelRe... | 3 | assert | numeric_literal | tests/smoke_tests/agent/test_agent_run_output.py | test_start_new_run | 383 | null | |
Upsonic/Upsonic | import pytest
import os
import tempfile
import shutil
import subprocess
import sys
from pathlib import Path
pytestmark = pytest.mark.timeout(60)
def temp_dir():
"""Create a temporary directory for CLI tests."""
dir_path = tempfile.mkdtemp()
yield dir_path
shutil.rmtree(dir_path, ignore_errors=True)
d... | 0 | assert | numeric_literal | tests/smoke_tests/cli/test_cli.py | test_cli_command_dispatch | 115 | null | |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.reflection import ReflectionConfig
from io import StringIO
from contextlib import redirect_stdout
pytestmark = pytest.mark.timeout(120)
@pytest.mark.asyncio
async def test_reflection_basic():
"""Test basic reflection feature with default config."""
# ... | True | assert | bool_literal | tests/smoke_tests/agent/test_reflection.py | test_reflection_basic | 42 | null | |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.exceptions import ExecutionTimeoutError
from upsonic.run.agent.output import AgentRunOutput
pytestmark = pytest.mark.timeout(120)
MODEL: str = "anthropic/claude-sonnet-4-5"
def test_partial_result_with_return_output() -> None:
"""With return_output=True... | 3 | assert | numeric_literal | tests/smoke_tests/agent/test_partial_timeout.py | test_partial_result_with_return_output | 164 | null | |
Upsonic/Upsonic | import asyncio
import os
import pytest
from unittest.mock import patch, AsyncMock
from contextlib import asynccontextmanager
from upsonic import Agent, Task
from upsonic.run.agent.output import AgentRunOutput
from upsonic.models import ModelResponse, TextPart
from upsonic.safety_engine import (
RuleBase,
Acti... | result.lower() | assert | func_call | tests/unit_tests/safety_engine/test_medical_policies.py | test_medical_info_block_phi | 71 | null | |
Upsonic/Upsonic | import unittest
import tempfile
import os
from pathlib import Path
from upsonic.loaders.docx import DOCXLoader
from upsonic.loaders.config import DOCXLoaderConfig
from upsonic.schemas.data_models import Document
class TestDOCXLoaderSimple(unittest.TestCase):
def setUp(self):
"""Set up test environment."""... | fmt) | self.assertEqual | variable | tests/unit_tests/rag/loaders/test_docx_loader_simple.py | test_table_format_options | TestDOCXLoaderSimple | 77 | null |
Upsonic/Upsonic | import pytest
from unittest.mock import Mock, patch, MagicMock
from typing import Dict, Any
from upsonic.tools.builtin_tools import (
AbstractBuiltinTool,
WebSearchTool,
CodeExecutionTool,
UrlContextTool,
WebSearch,
WebRead,
)
class TestBuiltinTools:
def test_builtin_tools_execution(self)... | "high" | assert | string_literal | tests/unit_tests/tools/test_builtin_tools.py | test_builtin_tools_execution | TestBuiltinTools | 37 | null |
Upsonic/Upsonic | import json
from typing import Any, List, Optional
import pytest
from upsonic.agent.context_managers.context_management_middleware import (
CONTEXT_FULL_MESSAGE,
ContextManagementMiddleware,
)
from upsonic.messages import (
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallP... | 2 | assert | numeric_literal | tests/smoke_tests/agent/test_context_management_stages.py | test_prune_removes_old_tool_messages | TestStage1ToolPruning | 257 | null |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.culture import Culture, CultureManager
def test_culture_repeat_settings():
"""Test Culture with repeat enabled."""
print("\n" + "=" * 70)
print("TEST 7: Culture Repeat Settings")
print("=" * 70)
culture_with_repeat = Culture(
d... | 2 | assert | numeric_literal | tests/smoke_tests/culture/test_culture_usage.py | test_culture_repeat_settings | 230 | null | |
Upsonic/Upsonic | import pytest
from typing import List
from upsonic.text_splitter import (
CharacterChunker, CharacterChunkingConfig,
RecursiveChunker, RecursiveChunkingConfig,
JSONChunker, JSONChunkingConfig,
MarkdownChunker, MarkdownChunkingConfig,
PythonChunker, PythonChunkingConfig,
HTMLChunker, HTMLChunkin... | 0 | assert | numeric_literal | tests/smoke_tests/chunkers/test_chunkers.py | test_character_min_chunk_size | TestCharacterChunker | 77 | null |
Upsonic/Upsonic | import pytest
from unittest.mock import Mock, MagicMock
from typing import List, Any
from upsonic.team.context_sharing import ContextSharing
from upsonic.tasks.tasks import Task
from upsonic.agent.agent import Agent
def test_context_sharing_empty_context():
"""
Test empty context handling.
This tests tha... | task | assert | variable | tests/unit_tests/team/test_context_sharing.py | test_context_sharing_empty_context | 399 | null | |
Upsonic/Upsonic | import pytest
import tempfile
import os
from pathlib import Path
from upsonic import Agent, Task
from upsonic.knowledge_base import KnowledgeBase
from upsonic.embeddings import OpenAIEmbedding
from upsonic.vectordb import ChromaProvider
from io import StringIO
from contextlib import redirect_stdout
pytestmark = pytest... | agent.tools | assert | complex_expr | tests/smoke_tests/knowledgebase/test_knowledgebase_as_tool.py | test_knowledgebase_registered_as_tool | 86 | null | |
Upsonic/Upsonic | import unittest
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from contextlib import asynccontextmanager
from upsonic import Task, Agent
from upsonic.run.agent.output import AgentRunOutput
from upsonic.models import ModelResponse, TextPart
class TestDo(unittest.TestCase):
@patch('upsonic.mod... | "") | self.assertNotEqual | string_literal | tests/unit_tests/test_do.py | test_agent_do_basic | TestDo | 43 | null |
Upsonic/Upsonic | import json
from typing import Any, List, Optional
import pytest
from upsonic.agent.context_managers.context_management_middleware import (
CONTEXT_FULL_MESSAGE,
ContextManagementMiddleware,
)
from upsonic.messages import (
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallP... | 0 | assert | numeric_literal | tests/smoke_tests/agent/test_context_management_stages.py | test_text_only_conversation_gets_summarized | TestStage2TextOnlySummarization | 324 | null |
Upsonic/Upsonic | import pytest
from io import StringIO
from contextlib import redirect_stdout
import os
import tempfile
import shutil
from upsonic import Agent, Task, KnowledgeBase
from upsonic.embeddings import OpenAIEmbedding, OpenAIEmbeddingConfig
from upsonic.vectordb import ChromaProvider, ChromaConfig, ConnectionConfig, Mode
py... | kb | assert | variable | tests/smoke_tests/knowledgebase/test_knowledgebase_context.py | test_knowledgebase_context_task_attribute | 450 | null | |
Upsonic/Upsonic | import os
import shutil
import subprocess
import tempfile
from pathlib import Path
from datetime import datetime
from typing import Dict, List
import pytest
from upsonic.ralph.config import RalphConfig
from upsonic.ralph.state.models import RalphState
from upsonic.ralph.state.manager import StateManager
from upsonic.... | 4 | assert | numeric_literal | tests/integration_tests/ralph/test_ralph_real_world.py | test_real_edit_file_multiple_replacements | TestRealFilesystemTools | 314 | null |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.reflection import ReflectionConfig
from io import StringIO
from contextlib import redirect_stdout
pytestmark = pytest.mark.timeout(120)
@pytest.mark.asyncio
async def test_reflection_without_config():
"""Test reflection with default config (no explicit co... | 3 | assert | numeric_literal | tests/smoke_tests/agent/test_reflection.py | test_reflection_without_config | 170 | null | |
Upsonic/Upsonic | import pytest
from io import StringIO
from contextlib import redirect_stdout
import os
import tempfile
import shutil
from upsonic import Agent, Task, KnowledgeBase
from upsonic.embeddings import OpenAIEmbedding, OpenAIEmbeddingConfig
from upsonic.vectordb import ChromaProvider, ChromaConfig, ConnectionConfig, Mode
py... | kb2 | assert | variable | tests/smoke_tests/knowledgebase/test_knowledgebase_context.py | test_knowledgebase_context_task_attribute | 461 | null | |
Upsonic/Upsonic | import sys
import pytest
import asyncio
from unittest.mock import Mock, patch, AsyncMock
from typing import List, Dict, Any
from upsonic.knowledge_base.knowledge_base import KnowledgeBase
from upsonic.vectordb.providers.chroma import ChromaProvider
from upsonic.vectordb.config import ChromaConfig, ConnectionConfig, Mo... | "id2" | assert | string_literal | tests/unit_tests/rag/vectordb/test_chroma_knowledge_base.py | test_chroma_upsert_operations | TestChromaKnowledgeBaseIntegration | 175 | null |
Upsonic/Upsonic | import pytest
import asyncio
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Task, Graph, Direct
from upsonic.graph.graph import TaskNode, DecisionFunc, DecisionLLM
pytestmark = pytest.mark.timeout(180)
@pytest.mark.asyncio
async def test_graph_add_tasks_chain_operator():
... | 3 | assert | numeric_literal | tests/smoke_tests/graphv1/test_graph.py | test_graph_add_tasks_chain_operator | 53 | null | |
Upsonic/Upsonic | import pytest
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Task
from upsonic.tools import tool, ToolKit
from typing import List, Dict, Any
pytestmark = pytest.mark.timeout(180)
MODEL = "anthropic/claude-sonnet-4-5"
def add_numbers(a: int, b: int) -> int:
"""Add two nu... | tc | assert | variable | tests/smoke_tests/tools/test_task_tool_e2e.py | test_e2e_multiple_task_tools_execution | 382 | null | |
Upsonic/Upsonic | import pytest
from typing import List
from upsonic.text_splitter import (
CharacterChunker, CharacterChunkingConfig,
RecursiveChunker, RecursiveChunkingConfig,
JSONChunker, JSONChunkingConfig,
MarkdownChunker, MarkdownChunkingConfig,
PythonChunker, PythonChunkingConfig,
HTMLChunker, HTMLChunkin... | 3 | assert | numeric_literal | tests/smoke_tests/chunkers/test_chunkers.py | test_multiple_documents | TestChunkerCommonAttributes | 516 | null |
Upsonic/Upsonic | import pytest
from typing import List, Any
from upsonic import Agent, Chat
from upsonic.run.events.events import (
AgentEvent,
TextDeltaEvent,
ToolCallDeltaEvent,
ToolCallEvent,
ToolResultEvent,
PipelineStartEvent,
PipelineEndEvent,
RunStartedEvent,
RunCompletedEvent,
)
from upsonic... | 1 | assert | numeric_literal | tests/smoke_tests/chat/test_chat_event_streaming.py | test_chat_stream_tool_result_content | 226 | null | |
Upsonic/Upsonic | import pytest
from io import StringIO
from contextlib import redirect_stdout
import os
import tempfile
import shutil
from upsonic import Agent, Task, KnowledgeBase
from upsonic.embeddings import OpenAIEmbedding, OpenAIEmbeddingConfig
from upsonic.vectordb import ChromaProvider, ChromaConfig, ConnectionConfig, Mode
py... | 1 | assert | numeric_literal | tests/smoke_tests/knowledgebase/test_knowledgebase_context.py | test_knowledgebase_context_task_attribute | 449 | null | |
Upsonic/Upsonic | import pytest
from typing import List, Dict, Any, Optional
from time import sleep
from upsonic.run.agent.output import AgentRunOutput
from upsonic.run.base import RunStatus
from upsonic.run.agent.input import AgentRunInput
from upsonic.tasks.tasks import Task
from upsonic.messages.messages import ModelMessage, ModelRe... | 2 | assert | numeric_literal | tests/smoke_tests/agent/test_agent_run_output.py | test_start_new_run | 373 | null | |
Upsonic/Upsonic | import sys
import pytest
from upsonic import Agent, Task
from upsonic.tools.mcp import MCPHandler
def math_agent_mcp_handler() -> MCPHandler:
"""Create an MCPHandler pointing at the math-agent MCP server."""
return MCPHandler(
command=f"{sys.executable} tests/smoke_tests/tools/_math_agent_server.py",
... | str(result) | assert | func_call | tests/smoke_tests/tools/test_agent_as_mcp.py | test_agent_as_mcp_tool | TestAgentAsMCP | 37 | null |
Upsonic/Upsonic | import os
import shutil
import subprocess
import tempfile
from pathlib import Path
from datetime import datetime
from typing import Dict, List
import pytest
from upsonic.ralph.config import RalphConfig
from upsonic.ralph.state.models import RalphState
from upsonic.ralph.state.manager import StateManager
from upsonic.... | 5 | assert | numeric_literal | tests/integration_tests/ralph/test_ralph_real_world.py | test_real_fix_plan_task_workflow | TestRealStateManager | 536 | null |
Upsonic/Upsonic | import asyncio
import unittest
from unittest.mock import patch, AsyncMock, MagicMock, PropertyMock
from upsonic import Task, Agent
from upsonic.exceptions import ExecutionTimeoutError
from upsonic.run.agent.output import AgentRunOutput
class TestNoTimeoutBackwardCompatibility(unittest.TestCase):
@patch('upsonic.... | str) | self.assertIsInstance | variable | tests/unit_tests/test_partial_timeout.py | test_do_without_timeout_works_normally | TestNoTimeoutBackwardCompatibility | 261 | null |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.exceptions import ExecutionTimeoutError
from upsonic.run.agent.output import AgentRunOutput
pytestmark = pytest.mark.timeout(120)
MODEL: str = "anthropic/claude-sonnet-4-5"
def test_partial_result_with_return_output() -> None:
"""With return_output=True... | None | assert | none_literal | tests/smoke_tests/agent/test_partial_timeout.py | test_partial_result_with_return_output | 162 | null | |
Upsonic/Upsonic | import sys
import pytest
from rich.console import Console
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Task, Team, Graph
from upsonic.eval import AccuracyEvaluator, AccuracyEvaluationResult, EvaluationScore
pytestmark = pytest.mark.timeout(300)
def _enable_print_capture()... | graph | assert | variable | tests/smoke_tests/evals/test_accuracy_eval.py | test_accuracy_eval_graph | 381 | null | |
Upsonic/Upsonic | import json
from typing import Any, List, Optional
import pytest
from upsonic.agent.context_managers.context_management_middleware import (
CONTEXT_FULL_MESSAGE,
ContextManagementMiddleware,
)
from upsonic.messages import (
ModelRequest,
ModelResponse,
SystemPromptPart,
TextPart,
ToolCallP... | 5 | assert | numeric_literal | tests/smoke_tests/agent/test_context_management_stages.py | test_constructor_defaults | TestEdgeCases | 721 | null |
Upsonic/Upsonic | import asyncio
import os
import sys
import time
import uuid
from typing import Any, Dict, List, Optional
from upsonic.session.agent import AgentSession, RunData
from upsonic.session.base import SessionType
from upsonic.storage.schemas import UserMemory
from upsonic.storage.mongo import AsyncMongoStorage
from upsonic.r... | 2 | assert | numeric_literal | tests/smoke_tests/memory/test_async_mongo_storage_comprehensive.py | test_session_upsert | 351 | null | |
Upsonic/Upsonic | import sys
import pytest
from rich.console import Console
from io import StringIO
from contextlib import redirect_stdout
from typing import List
from upsonic import Agent, Task, Team, Graph
from upsonic.eval import (
ReliabilityEvaluator,
ReliabilityEvaluationResult,
ToolCallCheck,
)
from upsonic.tools imp... | 1 | assert | numeric_literal | tests/smoke_tests/evals/test_reliability_eval.py | test_reliability_eval_agent_multiple_calls | 249 | null | |
Upsonic/Upsonic | import sys
import pytest
from rich.console import Console
from io import StringIO
from contextlib import redirect_stdout
from upsonic import Agent, Task, Team, Graph
from upsonic.eval import AccuracyEvaluator, AccuracyEvaluationResult, EvaluationScore
pytestmark = pytest.mark.timeout(300)
def _enable_print_capture()... | agent | assert | variable | tests/smoke_tests/evals/test_accuracy_eval.py | test_accuracy_eval_agent | 94 | null | |
Upsonic/Upsonic | import pytest
from upsonic import Agent, Task
from upsonic.culture import Culture, CultureManager
def test_culture_creation():
"""Test creating Culture with the provided usage pattern."""
print("\n" + "=" * 70)
print("TEST 1: Culture Creation")
print("=" * 70)
my_culture = Culture(
des... | True | assert | bool_literal | tests/smoke_tests/culture/test_culture_usage.py | test_culture_creation | 35 | null | |
Upsonic/Upsonic | import os
import shutil
import subprocess
import tempfile
from pathlib import Path
from datetime import datetime
from typing import Dict, List
import pytest
from upsonic.ralph.config import RalphConfig
from upsonic.ralph.state.models import RalphState
from upsonic.ralph.state.manager import StateManager
from upsonic.... | 3 | assert | numeric_literal | tests/integration_tests/ralph/test_ralph_real_world.py | test_real_all_validations_pass | TestRealBackpressure | 738 | null |
Upsonic/Upsonic | import pytest
from upsonic.agent.policy_manager import PolicyManager, PolicyResult
from upsonic.safety_engine.base import Policy, RuleBase, ActionBase
from upsonic.safety_engine.models import PolicyInput, RuleOutput, PolicyOutput
from upsonic.safety_engine.exceptions import DisallowedOperation
def create_mock_policy(... | "" | assert | string_literal | tests/unit_tests/agent/test_policy_manager.py | test_policy_result_initialization | TestPolicyResult | 406 | null |
Upsonic/Upsonic | import unittest
import tempfile
import os
from pathlib import Path
from upsonic.loaders.markdown import MarkdownLoader
from upsonic.loaders.config import MarkdownLoaderConfig
from upsonic.schemas.data_models import Document
class TestMarkdownLoaderSimple(unittest.TestCase):
def setUp(self):
"""Set up test... | doc.metadata) | self.assertIn | complex_expr | tests/unit_tests/rag/loaders/test_markdown_loader_simple.py | test_metadata_inclusion | TestMarkdownLoaderSimple | 127 | null |
Upsonic/Upsonic | import unittest
import tempfile
import os
import uuid
from pathlib import Path
from upsonic.loaders.yaml import YAMLLoader
from upsonic.loaders.config import YAMLLoaderConfig
from upsonic.schemas.data_models import Document
class TestYAMLLoaderSimple(unittest.TestCase):
def setUp(self):
"""Set up test env... | doc.metadata) | self.assertIn | complex_expr | tests/unit_tests/rag/loaders/test_yaml_loader_simple.py | test_metadata_extraction | TestYAMLLoaderSimple | 180 | null |
Upsonic/Upsonic | import unittest
import pytest
from unittest.mock import patch, AsyncMock, MagicMock
from contextlib import asynccontextmanager
from upsonic import Task, Agent
from upsonic.run.agent.output import AgentRunOutput
from upsonic.models import ModelResponse, TextPart
class TestDo(unittest.TestCase):
@patch('upsonic.mod... | str) | self.assertIsInstance | variable | tests/unit_tests/test_do.py | test_agent_do_basic | TestDo | 44 | null |
Upsonic/Upsonic | import unittest
from unittest.mock import patch, AsyncMock, MagicMock, mock_open
import pytest
from pydantic import BaseModel
from upsonic import Direct, Task
from upsonic.models import ModelResponse, TextPart, ModelRequestParameters
from upsonic.models.settings import ModelSettings
from upsonic.profiles import ModelP... | "rb") | assert_* | string_literal | tests/unit_tests/agent/test_direct.py | test_direct_do_with_attachments | TestDirectDoMethods | 316 | null |
Upsonic/Upsonic | import pytest
import os
import tempfile
import shutil
from upsonic import Agent, Task
from upsonic.agent.deepagent import DeepAgent
from upsonic.agent.deepagent.backends import StateBackend, MemoryBackend, CompositeBackend
from upsonic.storage import InMemoryStorage, AsyncSqliteStorage
from io import StringIO
from cont... | 1 | assert | numeric_literal | tests/smoke_tests/deepagent/test_deepagent.py | test_deepagent_full_features | 308 | null | |
Upsonic/Upsonic | import os
import shutil
import tempfile
from pathlib import Path
from typing import Optional
import pytest
from upsonic import AutonomousAgent
from upsonic.agent import Agent
from upsonic.agent.autonomous_agent import (
AutonomousFilesystemToolKit,
AutonomousShellToolKit,
)
from upsonic.storage import InMemor... | 0 | assert | numeric_literal | tests/smoke_tests/autonomous_agent/test_autonomous_agent.py | test_execute_heartbeat_with_llm | TestHeartbeatExecution | 827 | null |
Upsonic/Upsonic | import pytest
from upsonic.graphv2.store import InMemoryStore
from datetime import datetime
class TestInMemoryStore:
def test_in_memory_store(self):
"""Test InMemoryStore."""
store = InMemoryStore()
store.put(("user", "preferences"), "theme", "dark")
item = store.get(("user", "pr... | "dark" | assert | string_literal | tests/unit_tests/graph/test_graphv2_store.py | test_in_memory_store | TestInMemoryStore | 21 | null |
Upsonic/Upsonic | import pytest
import tempfile
import os
from pathlib import Path
from upsonic import Agent, Task
from upsonic.knowledge_base import KnowledgeBase
from upsonic.embeddings import OpenAIEmbedding
from upsonic.vectordb import ChromaProvider
from io import StringIO
from contextlib import redirect_stdout
pytestmark = pytest... | 2 | assert | numeric_literal | tests/smoke_tests/knowledgebase/test_knowledgebase_as_tool.py | test_multiple_knowledgebases_unique_tool_names | 364 | null | |
ebellocchia/bip_utils | import binascii
import unittest
from bip_utils import (
Substrate,
SubstrateCoins,
SubstratePath,
SubstratePathElem,
SubstratePathError,
SubstratePathParser,
)
from tests.substrate.test_substrate import TEST_SEED
TEST_VECT_PATH_ELEM = [
{
"elem": "//hard",
"is_hard": True,
... | elem.ToStr()) | self.assertEqual | func_call | tests/substrate/test_substrate_path.py | __test_path | SubstratePathTests | 238 | null |
ebellocchia/bip_utils | import binascii
import unittest
from bip_utils import (
Substrate,
SubstrateCoins,
SubstratePath,
SubstratePathElem,
SubstratePathError,
SubstratePathParser,
)
from tests.substrate.test_substrate import TEST_SEED
TEST_VECT_PATH_ELEM = [
{
"elem": "//hard",
"is_hard": True,
... | str(path)) | self.assertEqual | func_call | tests/substrate/test_substrate_path.py | __test_path | SubstratePathTests | 230 | null |
ebellocchia/bip_utils | import binascii
import unittest
from bip_utils import (
Bip39EntropyBitLen,
Bip39EntropyGenerator,
Bip39Languages,
Bip39MnemonicDecoder,
Bip39MnemonicGenerator,
Bip39MnemonicValidator,
Bip39SeedGenerator,
Bip39WordsNum,
MnemonicChecksumError,
)
TEST_VECT = [
#
# Basic 12-wo... | ValueError) | self.assertRaises | variable | tests/bip/bip39/test_bip39.py | test_entropy_invalid_bitlen | Bip39Tests | 410 | null |
ebellocchia/bip_utils | import os
import random
import unittest
from bip_utils import Bip32ChainCode, Bip32Depth, Bip32FingerPrint, Bip32KeyData, Bip32KeyIndex
from bip_utils.bip.bip32.bip32_key_data import Bip32KeyDataConst
class Bip32KeyDataTests(unittest.TestCase):
def test_operators(self):
self.assertTrue(Bip32Depth(1) < B... | Bip32Depth(2) > 1) | self.assertTrue | func_call | tests/bip/bip32/test_bip32_key_data.py | test_operators | Bip32KeyDataTests | 99 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.