repo_id stringclasses 400
values | commit_sha stringclasses 400
values | commit_index int32 0 951 | in_repo_split stringclasses 1
value | cross_repo_split stringclasses 1
value | test_file stringlengths 7 121 | test_function stringlengths 1 108 | assertion_type stringclasses 32
values | difficulty stringclasses 8
values | context_lines int32 3 600 | prefix large_stringlengths 44 113k | target large_stringlengths 1 498 | anchor_sha stringclasses 400
values | anchor_index int32 0 951 | qna_source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_config.py | test_lakeview_defaults_to_main_provider | self.assertEqual | string_literal | 41 | import unittest
from unittest.mock import patch
from trae_agent.utils.anthropic_client import AnthropicClient
from trae_agent.utils.config import Config, ModelParameters
from trae_agent.utils.openai_client import OpenAIClient
class TestLakeviewConfig(unittest.TestCase):
def get_base_config(self):
return {... | "claude-model") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_config.py | test_lakeview_partial_override_smart_defaults | self.assertEqual | string_literal | 42 | import unittest
from unittest.mock import patch
from trae_agent.utils.anthropic_client import AnthropicClient
from trae_agent.utils.config import Config, ModelParameters
from trae_agent.utils.openai_client import OpenAIClient
class TestLakeviewConfig(unittest.TestCase):
def get_base_config(self):
return {... | "doubao-model") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_config.py | test_lakeview_explicit_values_respected | self.assertEqual | string_literal | 45 | import unittest
from unittest.mock import patch
from trae_agent.utils.anthropic_client import AnthropicClient
from trae_agent.utils.config import Config, ModelParameters
from trae_agent.utils.openai_client import OpenAIClient
class TestLakeviewConfig(unittest.TestCase):
def get_base_config(self):
return {... | "custom-model-name") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_config.py | test_lakeview_disabled_ignores_config | self.assertIsNone | complex_expr | 41 | import unittest
from unittest.mock import patch
from trae_agent.utils.anthropic_client import AnthropicClient
from trae_agent.utils.config import Config, ModelParameters
from trae_agent.utils.openai_client import OpenAIClient
class TestLakeviewConfig(unittest.TestCase):
def get_base_config(self):
return {... | config.lakeview_config) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_config.py | test_default_anthropic_base_url | self.assertEqual | string_literal | 16 | import unittest
from unittest.mock import patch
from trae_agent.utils.anthropic_client import AnthropicClient
from trae_agent.utils.config import Config, ModelParameters
from trae_agent.utils.openai_client import OpenAIClient
class TestConfigBaseURL(unittest.TestCase):
def test_default_anthropic_base_url(self):
... | "https://api.anthropic.com") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_config.py | test_config_with_base_url_in_config | self.assertEqual | string_literal | 24 | import unittest
from unittest.mock import patch
from trae_agent.utils.anthropic_client import AnthropicClient
from trae_agent.utils.config import Config, ModelParameters
from trae_agent.utils.openai_client import OpenAIClient
class TestConfigBaseURL(unittest.TestCase):
def test_config_with_base_url_in_config(self... | "https://custom-openai.example.com/v1") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_config.py | test_multiple_providers_with_different_base_urls | self.assertEqual | string_literal | 58 | import unittest
from unittest.mock import patch
from trae_agent.utils.anthropic_client import AnthropicClient
from trae_agent.utils.config import Config, ModelParameters
from trae_agent.utils.openai_client import OpenAIClient
class TestConfigBaseURL(unittest.TestCase):
def test_multiple_providers_with_different_... | "https://custom-anthropic.example.com") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_set_chat_history | self.assertEqual | numeric_literal | 40 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | 1) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_parse_messages | self.assertEqual | numeric_literal | 49 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | 3) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_chat | self.assertEqual | numeric_literal | 46 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | 10) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_chat | self.assertEqual | numeric_literal | 47 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | 20) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_chat_with_tool_call | self.assertEqual | string_literal | 58 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_supports_tool_calling | self.assertEqual | bool_literal | 29 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | True) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_supports_tool_calling | self.assertEqual | bool_literal | 31 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | False) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_set_chat_history | self.assertEqual | string_literal | 41 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "user") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_chat | self.assertEqual | string_literal | 48 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "STOP") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_parse_messages | self.assertEqual | string_literal | 54 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "tool") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_parse_messages | self.assertEqual | string_literal | 51 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "Hello") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_parse_messages | self.assertEqual | string_literal | 52 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "model") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_chat | self.assertEqual | string_literal | 45 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "Hello!") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_client_init_no_key_raises_error | self.assertRaises | variable | 31 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | ValueError) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_chat_with_tool_call | self.assertEqual | string_literal | 64 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "TOOL_CALL") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_parse_tool_call_result | self.assertEqual | string_literal | 37 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "test_tool") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_chat_with_tool_call | self.assertEqual | string_literal | 62 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "get_weather") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_google_client.py | test_google_set_chat_history | self.assertEqual | string_literal | 42 | import os
import unittest
from unittest.mock import MagicMock, patch
from trae_agent.tools.base import Tool, ToolCall, ToolResult
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.google_client import GoogleClient
from trae_agent.utils.llm_basics import LLMMessage
TEST_MODEL = "gemini-2.5-flas... | "Hello, world!") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_ollama_client_utils.py | test_ollama_set_chat_history | self.assertTrue | bool_literal | 32 | import os
import unittest
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.llm_basics import LLMMessage
from trae_agent.utils.ollama_client import OllamaClient
TEST_MODEL = "qwen3:4b"
class TestOllamaClient(unittest.TestCase):
def test_ollama_set_chat_history(self):
"""
... | True) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_ollama_client_utils.py | test_supports_tool_calling | self.assertEqual | bool_literal | 23 | import os
import unittest
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.llm_basics import LLMMessage
from trae_agent.utils.ollama_client import OllamaClient
TEST_MODEL = "qwen3:4b"
class TestOllamaClient(unittest.TestCase):
def test_supports_tool_calling(self):
"""
A ... | False) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_ollama_client_utils.py | test_OllamaClient_init | self.assertEqual | string_literal | 31 | import os
import unittest
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.llm_basics import LLMMessage
from trae_agent.utils.ollama_client import OllamaClient
TEST_MODEL = "qwen3:4b"
class TestOllamaClient(unittest.TestCase):
def test_OllamaClient_init(self):
"""
Test ol... | "ollama") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_ollama_client_utils.py | test_OllamaClient_init | self.assertEqual | string_literal | 32 | import os
import unittest
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.llm_basics import LLMMessage
from trae_agent.utils.ollama_client import OllamaClient
TEST_MODEL = "qwen3:4b"
class TestOllamaClient(unittest.TestCase):
def test_OllamaClient_init(self):
"""
Test ol... | "http://localhost:11434/v1") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_openai_compatible_client.py | test_openrouter_client_inheritance | self.assertIsInstance | variable | 34 | import unittest
from unittest.mock import Mock, patch
from trae_agent.utils.azure_client import AzureClient
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.doubao_client import DoubaoClient
from trae_agent.utils.models.openai_compatible_base import OpenAICompatibleClient
from trae_agent.utils... | OpenAICompatibleClient) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_openai_compatible_client.py | test_openrouter_client_has_required_methods | self.assertTrue | func_call | 35 | import unittest
from unittest.mock import Mock, patch
from trae_agent.utils.azure_client import AzureClient
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.doubao_client import DoubaoClient
from trae_agent.utils.models.openai_compatible_base import OpenAICompatibleClient
from trae_agent.utils... | hasattr(client, "chat")) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_openai_compatible_client.py | test_openrouter_client_has_required_methods | self.assertTrue | func_call | 36 | import unittest
from unittest.mock import Mock, patch
from trae_agent.utils.azure_client import AzureClient
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.doubao_client import DoubaoClient
from trae_agent.utils.models.openai_compatible_base import OpenAICompatibleClient
from trae_agent.utils... | hasattr(client, "set_chat_history")) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_openai_compatible_client.py | test_openrouter_client_has_required_methods | self.assertTrue | func_call | 37 | import unittest
from unittest.mock import Mock, patch
from trae_agent.utils.azure_client import AzureClient
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.doubao_client import DoubaoClient
from trae_agent.utils.models.openai_compatible_base import OpenAICompatibleClient
from trae_agent.utils... | hasattr(client, "supports_tool_calling")) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_openai_compatible_client.py | test_openrouter_client_has_required_methods | self.assertTrue | func_call | 38 | import unittest
from unittest.mock import Mock, patch
from trae_agent.utils.azure_client import AzureClient
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.doubao_client import DoubaoClient
from trae_agent.utils.models.openai_compatible_base import OpenAICompatibleClient
from trae_agent.utils... | hasattr(client, "set_trajectory_recorder")) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_openrouter_client_utils.py | test_set_chat_history | self.assertTrue | bool_literal | 29 | import os
import unittest
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.llm_basics import LLMMessage
from trae_agent.utils.openrouter_client import OpenRouterClient
TEST_MODEL = "mistralai/mistral-small-3.2-24b-instruct:free"
class TestOpenRouterClient(unittest.TestCase):
def test_se... | True) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_openrouter_client_utils.py | test_supports_tool_calling | self.assertEqual | bool_literal | 32 | import os
import unittest
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.llm_basics import LLMMessage
from trae_agent.utils.openrouter_client import OpenRouterClient
TEST_MODEL = "mistralai/mistral-small-3.2-24b-instruct:free"
class TestOpenRouterClient(unittest.TestCase):
def test_su... | False) | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
bytedance/trae-agent | dff00d10488e08366bb7845207d71212c091547b | 23 | train | train | tests/utils/test_openrouter_client_utils.py | test_OpenRouterClient_init | self.assertEqual | string_literal | 27 | import os
import unittest
from trae_agent.utils.config import ModelParameters
from trae_agent.utils.llm_basics import LLMMessage
from trae_agent.utils.openrouter_client import OpenRouterClient
TEST_MODEL = "mistralai/mistral-small-3.2-24b-instruct:free"
class TestOpenRouterClient(unittest.TestCase):
def test_Op... | "https://openrouter.ai/api/v1") | dff00d10488e08366bb7845207d71212c091547b | 23 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_add.py | test_add_invalid_key_status_code | assert | numeric_literal | 19 | from django.test import SimpleTestCase
from django.core.exceptions import RequestDataTooBig
from apprise import ConfigFormat
from unittest.mock import patch
from unittest import mock
from django.test.utils import override_settings
from ..forms import AUTO_DETECT_CONFIG_KEYWORD
import json
import hashlib
class AddTests... | 404 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_add.py | test_key_lengths | assert | numeric_literal | 25 | from django.test import SimpleTestCase
from django.core.exceptions import RequestDataTooBig
from apprise import ConfigFormat
from unittest.mock import patch
from unittest import mock
from django.test.utils import override_settings
from ..forms import AUTO_DETECT_CONFIG_KEYWORD
import json
import hashlib
class AddTests... | 128 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_add.py | test_key_lengths | assert | numeric_literal | 30 | from django.test import SimpleTestCase
from django.core.exceptions import RequestDataTooBig
from apprise import ConfigFormat
from unittest.mock import patch
from unittest import mock
from django.test.utils import override_settings
from ..forms import AUTO_DETECT_CONFIG_KEYWORD
import json
import hashlib
class AddTests... | 200 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_add.py | test_save_config_by_urls_with_lock | assert | numeric_literal | 25 | from django.test import SimpleTestCase
from django.core.exceptions import RequestDataTooBig
from apprise import ConfigFormat
from unittest.mock import patch
from unittest import mock
from django.test.utils import override_settings
from ..forms import AUTO_DETECT_CONFIG_KEYWORD
import json
import hashlib
class AddTests... | 403 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_add.py | test_save_config_by_urls | assert | numeric_literal | 24 | from django.test import SimpleTestCase
from django.core.exceptions import RequestDataTooBig
from apprise import ConfigFormat
from unittest.mock import patch
from unittest import mock
from django.test.utils import override_settings
from ..forms import AUTO_DETECT_CONFIG_KEYWORD
import json
import hashlib
class AddTests... | 405 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_add.py | test_save_config_by_urls | assert | numeric_literal | 28 | from django.test import SimpleTestCase
from django.core.exceptions import RequestDataTooBig
from apprise import ConfigFormat
from unittest.mock import patch
from unittest import mock
from django.test.utils import override_settings
from ..forms import AUTO_DETECT_CONFIG_KEYWORD
import json
import hashlib
class AddTests... | 400 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_attachment.py | test_form_file_attachment_parsing | assert | numeric_literal | 45 | import requests
from django.test import SimpleTestCase
from unittest import mock
from unittest.mock import mock_open
from ..utils import Attachment, HTTPAttachment
from ..utils import parse_attachments
from django.test.utils import override_settings
from tempfile import TemporaryDirectory
from shutil import rmtree
impo... | 1 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_attachment.py | test_direct_attachment_parsing | assert | numeric_literal | 41 | import requests
from django.test import SimpleTestCase
from unittest import mock
from unittest.mock import mock_open
from ..utils import Attachment, HTTPAttachment
from ..utils import parse_attachments
from django.test.utils import override_settings
from tempfile import TemporaryDirectory
from shutil import rmtree
impo... | 0 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_attachment.py | test_direct_attachment_parsing | assert | numeric_literal | 94 | import requests
from django.test import SimpleTestCase
from unittest import mock
from unittest.mock import mock_open
from ..utils import Attachment, HTTPAttachment
from ..utils import parse_attachments
from django.test.utils import override_settings
from tempfile import TemporaryDirectory
from shutil import rmtree
impo... | 3 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_attachment.py | test_attachment_initialization | assert | string_literal | 59 | import requests
from django.test import SimpleTestCase
from unittest import mock
from unittest.mock import mock_open
from ..utils import Attachment, HTTPAttachment
from ..utils import parse_attachments
from django.test.utils import override_settings
from tempfile import TemporaryDirectory
from shutil import rmtree
impo... | 'web' | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_attachment.py | test_form_file_attachment_parsing | self.assertRaises | variable | 94 | import requests
from django.test import SimpleTestCase
from unittest import mock
from unittest.mock import mock_open
from ..utils import Attachment, HTTPAttachment
from ..utils import parse_attachments
from django.test.utils import override_settings
from tempfile import TemporaryDirectory
from shutil import rmtree
impo... | ValueError) | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_config_cache.py | test_apprise_config_io_hash_mode | assert | numeric_literal | 40 | import os
from ..utils import AppriseConfigCache
from ..utils import AppriseStoreMode
from ..utils import SimpleFileExtension
from apprise import ConfigFormat
from unittest.mock import patch
from unittest.mock import mock_open
import errno
def test_apprise_config_io_hash_mode(tmpdir):
"""
Test Apprise Config D... | 1 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_config_cache.py | test_apprise_config_io_disabled_mode | assert | numeric_literal | 41 | import os
from ..utils import AppriseConfigCache
from ..utils import AppriseStoreMode
from ..utils import SimpleFileExtension
from apprise import ConfigFormat
from unittest.mock import patch
from unittest.mock import mock_open
import errno
def test_apprise_config_io_disabled_mode(tmpdir):
"""
Test Apprise Conf... | 0 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_config_cache.py | test_apprise_config_io_hash_mode | assert | bool_literal | 53 | import os
from ..utils import AppriseConfigCache
from ..utils import AppriseStoreMode
from ..utils import SimpleFileExtension
from apprise import ConfigFormat
from unittest.mock import patch
from unittest.mock import mock_open
import errno
def test_apprise_config_io_hash_mode(tmpdir):
"""
Test Apprise Config D... | True | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_config_cache.py | test_apprise_config_io_hash_mode | assert | none_literal | 56 | import os
from ..utils import AppriseConfigCache
from ..utils import AppriseStoreMode
from ..utils import SimpleFileExtension
from apprise import ConfigFormat
from unittest.mock import patch
from unittest.mock import mock_open
import errno
def test_apprise_config_io_hash_mode(tmpdir):
"""
Test Apprise Config D... | None | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_config_cache.py | test_apprise_config_io_hash_mode | assert | bool_literal | 61 | import os
from ..utils import AppriseConfigCache
from ..utils import AppriseStoreMode
from ..utils import SimpleFileExtension
from apprise import ConfigFormat
from unittest.mock import patch
from unittest.mock import mock_open
import errno
def test_apprise_config_io_hash_mode(tmpdir):
"""
Test Apprise Config D... | False | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_config_cache.py | test_apprise_config_io_disabled_mode | assert | collection | 28 | import os
from ..utils import AppriseConfigCache
from ..utils import AppriseStoreMode
from ..utils import SimpleFileExtension
from apprise import ConfigFormat
from unittest.mock import patch
from unittest.mock import mock_open
import errno
def test_apprise_config_io_disabled_mode(tmpdir):
"""
Test Apprise Conf... | (None, '') | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_config_cache.py | test_apprise_config_io_disabled_mode | assert | complex_expr | 22 | import os
from ..utils import AppriseConfigCache
from ..utils import AppriseStoreMode
from ..utils import SimpleFileExtension
from apprise import ConfigFormat
from unittest.mock import patch
from unittest.mock import mock_open
import errno
def test_apprise_config_io_disabled_mode(tmpdir):
"""
Test Apprise Conf... | AppriseStoreMode.DISABLED | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_del.py | test_del_get_invalid_key_status_code | assert | numeric_literal | 14 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch
import hashlib
class DelTests(SimpleTestCase):
def test_del_get_invalid_key_status_code(self):
"""
Test GET requests to invalid key
"""
response = self.client.get(... | 404 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_del.py | test_key_lengths | assert | numeric_literal | 20 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch
import hashlib
class DelTests(SimpleTestCase):
def test_key_lengths(self):
"""
Test our key lengths
"""
# our key to use
h = hashlib.sha512()
h.up... | 128 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_del.py | test_key_lengths | assert | numeric_literal | 25 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch
import hashlib
class DelTests(SimpleTestCase):
def test_key_lengths(self):
"""
Test our key lengths
"""
# our key to use
h = hashlib.sha512()
h.up... | 200 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_del.py | test_key_lengths | assert | numeric_literal | 37 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch
import hashlib
class DelTests(SimpleTestCase):
def test_key_lengths(self):
"""
Test our key lengths
"""
# our key to use
h = hashlib.sha512()
h.up... | 204 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_del.py | test_del_with_lock | assert | numeric_literal | 19 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch
import hashlib
class DelTests(SimpleTestCase):
@override_settings(APPRISE_CONFIG_LOCK=True)
def test_del_with_lock(self):
"""
Test deleting a configuration by URLs with lock s... | 403 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_details.py | test_post_not_supported | assert | numeric_literal | 12 | from django.test import SimpleTestCase
class DetailTests(SimpleTestCase):
def test_post_not_supported(self):
"""
Test POST requests
"""
response = self.client.post('/details')
# 405 as posting is not allowed
assert response.status_code == | 405 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_details.py | test_details_simple | self.assertEqual | numeric_literal | 13 | from django.test import SimpleTestCase
class DetailTests(SimpleTestCase):
def test_details_simple(self):
"""
Test retrieving details
"""
# Nothing to return
response = self.client.get('/details')
self.assertEqual(response.status_code, | 200) | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_get.py | test_get_invalid_key_status_code | assert | numeric_literal | 12 | from django.test import SimpleTestCase
from unittest.mock import patch
class GetTests(SimpleTestCase):
def test_get_invalid_key_status_code(self):
"""
Test GET requests to invalid key
"""
response = self.client.get('/get/**invalid-key**')
assert response.status_code == | 404 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_get.py | test_get_config | assert | numeric_literal | 17 | from django.test import SimpleTestCase
from unittest.mock import patch
class GetTests(SimpleTestCase):
def test_get_config(self):
"""
Test retrieving configuration
"""
# our key to use
key = 'test_get_config_'
# GET returns 405 (not allowed)
response = sel... | 405 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_get.py | test_get_config | assert | numeric_literal | 27 | from django.test import SimpleTestCase
from unittest.mock import patch
class GetTests(SimpleTestCase):
def test_get_config(self):
"""
Test retrieving configuration
"""
# our key to use
key = 'test_get_config_'
# GET returns 405 (not allowed)
response = sel... | 200 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_healthecheck.py | test_post_not_supported | assert | numeric_literal | 16 | import mock
from django.test import SimpleTestCase
from json import loads
from django.test.utils import override_settings
from ..utils import healthcheck
class HealthCheckTests(SimpleTestCase):
def test_post_not_supported(self):
"""
Test POST requests
"""
response = self.client.pos... | 405 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_healthecheck.py | test_healthcheck_simple | self.assertEqual | numeric_literal | 17 | import mock
from django.test import SimpleTestCase
from json import loads
from django.test.utils import override_settings
from ..utils import healthcheck
class HealthCheckTests(SimpleTestCase):
def test_healthcheck_simple(self):
"""
Test retrieving basic successful health-checks
"""
... | 200) | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_healthecheck.py | test_healthcheck_library | assert | collection | 16 | import mock
from django.test import SimpleTestCase
from json import loads
from django.test.utils import override_settings
from ..utils import healthcheck
class HealthCheckTests(SimpleTestCase):
def test_healthcheck_library(self):
"""
Test underlining healthcheck library
"""
result... | { 'can_write_config': True, 'can_write_attach': True, 'details': ['OK'] } | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_healthecheck.py | test_healthcheck_library | assert | collection | 36 | import mock
from django.test import SimpleTestCase
from json import loads
from django.test.utils import override_settings
from ..utils import healthcheck
class HealthCheckTests(SimpleTestCase):
def test_healthcheck_library(self):
"""
Test underlining healthcheck library
"""
result... | { 'can_write_config': True, 'can_write_attach': True, 'details': ['OK'], } | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_healthecheck.py | test_healthcheck_library | assert | collection | 56 | import mock
from django.test import SimpleTestCase
from json import loads
from django.test.utils import override_settings
from ..utils import healthcheck
class HealthCheckTests(SimpleTestCase):
def test_healthcheck_library(self):
"""
Test underlining healthcheck library
"""
result... | { 'can_write_config': True, 'can_write_attach': False, 'details': [ 'ATTACH_PERMISSION_ISSUE', ]} | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_healthecheck.py | test_healthcheck_library | assert | collection | 65 | import mock
from django.test import SimpleTestCase
from json import loads
from django.test.utils import override_settings
from ..utils import healthcheck
class HealthCheckTests(SimpleTestCase):
def test_healthcheck_library(self):
"""
Test underlining healthcheck library
"""
result... | { 'can_write_config': False, 'can_write_attach': True, 'details': [ 'CONFIG_PERMISSION_ISSUE', ]} | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_json_urls.py | test_json_urls_config | assert | numeric_literal | 54 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch
class JsonUrlsTests(SimpleTestCase):
def test_json_urls_config(self):
"""
Test retrieving configuration
"""
# our key to use
key = 'test_json_urls_config'... | 0 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_json_urls.py | test_json_urls_config | assert | numeric_literal | 70 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch
class JsonUrlsTests(SimpleTestCase):
def test_json_urls_config(self):
"""
Test retrieving configuration
"""
# our key to use
key = 'test_json_urls_config'... | 1 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_json_urls.py | test_json_urls_config | assert | numeric_literal | 110 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch
class JsonUrlsTests(SimpleTestCase):
def test_json_urls_config(self):
"""
Test retrieving configuration
"""
# our key to use
key = 'test_json_urls_config'... | 2 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_json_urls.py | test_get_invalid_key_status_code | assert | numeric_literal | 13 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch
class JsonUrlsTests(SimpleTestCase):
def test_get_invalid_key_status_code(self):
"""
Test GET requests to invalid key
"""
response = self.client.get('/get/**invali... | 404 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_json_urls.py | test_post_not_supported | assert | numeric_literal | 14 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch
class JsonUrlsTests(SimpleTestCase):
def test_post_not_supported(self):
"""
Test POST requests with key
"""
response = self.client.post('/json/urls/test')
... | 405 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_manager.py | test_manage_status_code | assert | numeric_literal | 12 | from django.test import SimpleTestCase
class ManagerPageTests(SimpleTestCase):
def test_manage_status_code(self):
"""
General testing of management page
"""
# No key was specified
response = self.client.get('/cfg/')
assert response.status_code == | 404 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_manager.py | test_manage_status_code | assert | numeric_literal | 20 | from django.test import SimpleTestCase
class ManagerPageTests(SimpleTestCase):
def test_manage_status_code(self):
"""
General testing of management page
"""
# No key was specified
response = self.client.get('/cfg/')
assert response.status_code == 404
# An i... | 200 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_notify.py | test_notify_by_loaded_urls | assert | numeric_literal | 56 | from django.test import SimpleTestCase, override_settings
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.exceptions import RequestDataTooBig
from unittest import mock
import requests
from ..forms import NotifyForm
import json
import apprise
from inspect import cleandoc
N_MGR = apprise.m... | 1 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_notify.py | test_notify_by_loaded_urls | assert | numeric_literal | 151 | from django.test import SimpleTestCase, override_settings
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.exceptions import RequestDataTooBig
from unittest import mock
import requests
from ..forms import NotifyForm
import json
import apprise
from inspect import cleandoc
N_MGR = apprise.m... | 0 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_notify.py | test_advanced_notify_with_tags | assert | numeric_literal | 105 | from django.test import SimpleTestCase, override_settings
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.exceptions import RequestDataTooBig
from unittest import mock
import requests
from ..forms import NotifyForm
import json
import apprise
from inspect import cleandoc
N_MGR = apprise.m... | 3 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_notify.py | test_partial_notify_by_loaded_urls | assert | numeric_literal | 63 | from django.test import SimpleTestCase, override_settings
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.exceptions import RequestDataTooBig
from unittest import mock
import requests
from ..forms import NotifyForm
import json
import apprise
from inspect import cleandoc
N_MGR = apprise.m... | 2 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_payload_mapper.py | test_remap_fields | assert | variable | 27 | from django.test import SimpleTestCase
from ..payload_mapper import remap_fields
class NotifyPayloadMapper(SimpleTestCase):
def test_remap_fields(self):
"""
Test payload re-mapper
"""
#
# No rules defined
#
rules = {}
payload = {
'format... | payload_orig | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_payload_mapper.py | test_remap_fields | assert | collection | 145 | from django.test import SimpleTestCase
from ..payload_mapper import remap_fields
class NotifyPayloadMapper(SimpleTestCase):
def test_remap_fields(self):
"""
Test payload re-mapper
"""
#
# No rules defined
#
rules = {}
payload = {
'format... | { 'format': 'markdown', 'body': 'body', } | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_payload_mapper.py | test_remap_fields | assert | collection | 168 | from django.test import SimpleTestCase
from ..payload_mapper import remap_fields
class NotifyPayloadMapper(SimpleTestCase):
def test_remap_fields(self):
"""
Test payload re-mapper
"""
#
# No rules defined
#
rules = {}
payload = {
'format... | { 'format': 'markdown', 'body': 'the message', } | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_payload_mapper.py | test_remap_fields | assert | collection | 122 | from django.test import SimpleTestCase
from ..payload_mapper import remap_fields
class NotifyPayloadMapper(SimpleTestCase):
def test_remap_fields(self):
"""
Test payload re-mapper
"""
#
# No rules defined
#
rules = {}
payload = {
'format... | { 'format': 'markdown', 'title': '# title', 'body': 'body', } | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_stateful_notify.py | test_stateful_group_dict_notify | assert | numeric_literal | 104 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch, Mock
from ..forms import NotifyForm
from ..utils import ConfigCache
from json import dumps
import os
import re
import apprise
import requests
import inspect
N_MGR = apprise.manager_plugins.Notificati... | 2 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_stateful_notify.py | test_stateful_group_dict_notify | assert | numeric_literal | 80 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch, Mock
from ..forms import NotifyForm
from ..utils import ConfigCache
from json import dumps
import os
import re
import apprise
import requests
import inspect
N_MGR = apprise.manager_plugins.Notificati... | 1 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_stateful_notify.py | test_stateful_configuration_io | assert | numeric_literal | 66 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch, Mock
from ..forms import NotifyForm
from ..utils import ConfigCache
from json import dumps
import os
import re
import apprise
import requests
import inspect
N_MGR = apprise.manager_plugins.Notificati... | 3 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_stateful_notify.py | test_stateful_configuration_io | assert | numeric_literal | 139 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch, Mock
from ..forms import NotifyForm
from ..utils import ConfigCache
from json import dumps
import os
import re
import apprise
import requests
import inspect
N_MGR = apprise.manager_plugins.Notificati... | 0 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_stateful_notify.py | test_stateful_configuration_with_lock | assert | numeric_literal | 30 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch, Mock
from ..forms import NotifyForm
from ..utils import ConfigCache
from json import dumps
import os
import re
import apprise
import requests
import inspect
N_MGR = apprise.manager_plugins.Notificati... | 403 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_stateful_notify.py | test_stateful_group_dict_notify | assert | numeric_literal | 55 | from django.test import SimpleTestCase
from django.test.utils import override_settings
from unittest.mock import patch, Mock
from ..forms import NotifyForm
from ..utils import ConfigCache
from json import dumps
import os
import re
import apprise
import requests
import inspect
N_MGR = apprise.manager_plugins.Notificati... | 200 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_stateless_notify.py | test_notify | assert | numeric_literal | 40 | from django.test import SimpleTestCase
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.exceptions import RequestDataTooBig
from django.test.utils import override_settings
from unittest import mock
from ..forms import NotifyByUrlForm
import requests
import json
import apprise
N_MGR = appr... | 1 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_stateless_notify.py | test_notify | assert | numeric_literal | 144 | from django.test import SimpleTestCase
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.exceptions import RequestDataTooBig
from django.test.utils import override_settings
from unittest import mock
from ..forms import NotifyByUrlForm
import requests
import json
import apprise
N_MGR = appr... | 0 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_stateless_notify.py | test_partial_notify | assert | numeric_literal | 47 | from django.test import SimpleTestCase
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.exceptions import RequestDataTooBig
from django.test.utils import override_settings
from unittest import mock
from ..forms import NotifyByUrlForm
import requests
import json
import apprise
N_MGR = appr... | 2 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_webhook.py | test_webhook_testing | assert | numeric_literal | 26 | from django.test import SimpleTestCase
from unittest import mock
from json import loads
import requests
from ..utils import send_webhook
from django.test.utils import override_settings
class WebhookTests(SimpleTestCase):
@mock.patch('requests.post')
def test_webhook_testing(self, mock_post):
"""
... | 1 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_webhook.py | test_webhook_testing | assert | numeric_literal | 66 | from django.test import SimpleTestCase
from unittest import mock
from json import loads
import requests
from ..utils import send_webhook
from django.test.utils import override_settings
class WebhookTests(SimpleTestCase):
@mock.patch('requests.post')
def test_webhook_testing(self, mock_post):
"""
... | 0 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
caronc/apprise-api | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | train | train | apprise_api/api/tests/test_welcome.py | test_welcome_page_status_code | assert | numeric_literal | 8 | from django.test import SimpleTestCase
class WelcomePageTests(SimpleTestCase):
def test_welcome_page_status_code(self):
response = self.client.get('/')
assert response.status_code == | 200 | 6e57e33b8f71120f3caa044eda08244de303990b | 40 | v2_extractor_at_anchor |
cased/kit | d0a64b11a3c316ecf577fd6e581e3496d13a71e0 | 85 | train | train | tests/mcp/test_grep_ast.py | test_grep_ast_simple_mode | assert | numeric_literal | 40 | from unittest.mock import Mock, patch
import pytest
from kit.mcp.dev_server import KitServerLogic
class TestGrepAST:
def logic(self):
return KitServerLogic()
def mock_repo(self):
repo = Mock()
repo.repo_path = "/test/repo"
return repo
def test_grep_ast_simple_mode(self,... | 1 | d0a64b11a3c316ecf577fd6e581e3496d13a71e0 | 85 | v2_extractor_at_anchor |
cased/kit | d0a64b11a3c316ecf577fd6e581e3496d13a71e0 | 85 | train | train | tests/mcp/test_package_search_mcp.py | test_package_search_grep_tool | assert | numeric_literal | 33 | from unittest.mock import MagicMock, patch
import pytest
from kit.mcp.dev_server import LocalDevServerLogic, MCPError
class TestPackageSearchMCP:
def server_logic(self):
"""Create a LocalDevServerLogic instance."""
return LocalDevServerLogic()
def mock_api_key(self, monkeypatch):
""... | 1 | d0a64b11a3c316ecf577fd6e581e3496d13a71e0 | 85 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.