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
slackapi/bolt-python
import datetime import json import logging from time import time from typing import Optional from slack_sdk import WebClient from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Bot, Installation from slack_sdk.signature import SignatureVerifier from slack_bolt import App, Bolt...
"bot"
assert
string_literal
tests/scenario_tests/test_app_actor_user_token.py
handle_events
TestApp
206
null
slackapi/bolt-python
import asyncio import json from time import time from urllib.parse import quote import pytest from sanic import Sanic from sanic.request import Request from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.adapter.sanic.async_handler import AsyncSlackR...
None
assert
none_literal
tests/adapter_tests_async/test_async_sanic.py
test_oauth
TestSanic
219
null
slackapi/bolt-python
import json import logging from time import time from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web import SlackResponse, WebClient from slack_bolt import Ack, App, BoltRequest from slack_bolt.workflows.step import Complete, Configure, Fail, Update, WorkflowStep from t...
self)
assert_*
variable
tests/scenario_tests/test_workflow_steps_decorator_with_args.py
test_execute
TestWorkflowStepsDecorator
88
null
slackapi/bolt-python
import datetime import json import logging from time import time from typing import Optional import pytest from slack_sdk.oauth.installation_store import Installation, Bot from slack_sdk.oauth.installation_store.async_installation_store import ( AsyncInstallationStore, ) from slack_sdk.signature import SignatureVe...
1)
assert_*
numeric_literal
tests/scenario_tests_async/test_app_actor_user_token.py
test_authorize_result
TestApp
130
null
slackapi/bolt-python
import json from time import time from slack_sdk.web import WebClient from slack_sdk.signature import SignatureVerifier from slack_bolt import App, BoltRequest from tests.mock_web_api_server import ( assert_received_request_count, setup_mock_web_api_server, cleanup_mock_web_api_server, assert_auth_tes...
self)
assert_*
variable
tests/scenario_tests/test_events_request_verification.py
test_default
TestEventsRequestVerification
61
null
slackapi/bolt-python
import json import logging from time import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.http_retry import all_builtin_retry_handlers from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest from slack_bolt.app import App from tests.mock_web_api_server...
1)
assert_*
numeric_literal
tests/scenario_tests/test_web_client_customization.py
test_web_client_customization
TestWebClientCustomization
72
null
slackapi/bolt-python
import asyncio import pytest from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.adapter.socket_mode.websockets import AsyncSocketModeHandler from slack_bolt.app.async_app import AsyncApp from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_api_server, ) from t...
True
assert
bool_literal
tests/adapter_tests_async/socket_mode/test_async_websockets.py
test_events
TestSocketModeWebsockets
68
null
slackapi/bolt-python
import copy import json from time import time from urllib.parse import quote import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.app.async_app import AsyncApp from slack_bolt.request.async_request import AsyncBoltRequest from tests.mock...
1)
assert_*
numeric_literal
tests/scenario_tests_async/test_block_suggestion.py
test_success
TestAsyncBlockSuggestion
79
null
slackapi/bolt-python
import json import time from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.app import App from slack_bolt.request import BoltRequest from tests.mock_web_api_server import assert_auth_test_count, cleanup_mock_web_api_server, setup_mock_web_api_server from tests.utils ...
1)
assert_*
numeric_literal
tests/scenario_tests/test_message_file_share.py
test_message_handler
TestMessageFileShare
69
null
slackapi/bolt-python
import pytest from slack_sdk.models.blocks import PlainTextObject, DividerBlock from slack_sdk.models.views import View from slack_bolt import BoltResponse from slack_bolt.context.ack.async_ack import AsyncAck class TestAsyncAsyncAck: @pytest.mark.asyncio async def test_text(self): ack = AsyncAck() ...
(200, "foo")
assert
collection
tests/slack_bolt_async/context/test_async_ack.py
test_text
TestAsyncAsyncAck
14
null
slackapi/bolt-python
import datetime import json import logging from time import time from typing import Optional from slack_sdk import WebClient from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Bot, Installation from slack_sdk.signature import SignatureVerifier from slack_bolt import App, Bolt...
1)
assert_*
numeric_literal
tests/scenario_tests/test_app_actor_user_token.py
test_authorize_result_no_user_token
TestApp
217
null
slackapi/bolt-python
from slack_sdk import WebClient from slack_bolt import BoltRequest, App, Say, Respond, Ack from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_api_server, ) from tests.utils import remove_os_env_temporarily, restore_os_env class TestBlockActionsRespond: signing_secret = "se...
None
assert
none_literal
tests/scenario_tests/test_block_actions_respond.py
test_mock_server_is_running
TestBlockActionsRespond
30
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest, BoltResponse from slack_bolt.app import App from slack_bolt.authorization import AuthorizeResult from slack_bolt.request.payload_utils ...
1)
assert_*
numeric_literal
tests/scenario_tests/test_authorize.py
test_success
TestAuthorize
123
null
slackapi/bolt-python
from time import sleep from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest from tests.mock_web_api_server import ( assert_auth_test_count, assert_received_request_count, cleanup_mock_web_api_server, setup_mock_web_api_server, ) from tests.utils import remove_os_env_temporarily,...
None
assert
none_literal
tests/scenario_tests/test_events_ignore_self.py
test_self_events
TestEventsIgnoreSelf
44
null
slackapi/bolt-python
import datetime import json import logging from time import time from typing import Optional import pytest from slack_sdk import WebClient from slack_sdk.errors import SlackApiError from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Bot, Installation from slack_sdk.signature i...
event
assert
variable
tests/scenario_tests/test_app_custom_authorize.py
handle_app_mention
TestApp
191
null
slackapi/bolt-python
import json from time import sleep, time from typing import Optional from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Installation from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest from tests.mock_w...
None
assert
none_literal
tests/scenario_tests/test_events_org_apps.py
find_installation
OrgAppInstallationStore
27
null
slackapi/bolt-python
import logging import time from slack_sdk import WebClient from slack_bolt import App from slack_bolt.adapter.socket_mode.websocket_client import SocketModeHandler from .mock_socket_mode_server import ( start_socket_mode_server, stop_socket_mode_server, ) from .mock_web_api_server import ( setup_mock_web_...
True
assert
bool_literal
tests/adapter_tests/socket_mode/test_interactions_websocket_client.py
test_interactions
TestSocketModeWebsocketClient
63
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.app import App from slack_bolt.request import BoltRequest from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_a...
1)
assert_*
numeric_literal
tests/scenario_tests/test_view_closed.py
test_success
TestViewClosed
67
null
slackapi/bolt-python
from time import time import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.app.async_app import AsyncApp from slack_bolt.request.async_request import AsyncBoltRequest from tests.mock_web_api_server import ( cleanup_mock_web_api_serve...
""
assert
string_literal
tests/scenario_tests_async/test_ssl_check.py
test_ssl_check
TestAsyncSSLCheck
63
null
slackapi/bolt-python
import pytest from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.middleware.authorization.async_single_team_authorization import ( AsyncSingleTeamAuthorization, ) from slack_bolt.middleware.authorization.internals import _build_user_facing_authorize_error_message from slack_bolt.request.async_re...
"foo"
assert
string_literal
tests/slack_bolt_async/middleware/authorization/test_single_team_authorization.py
test_failure_pattern_custom_message
TestSingleTeamAuthorization
83
null
slackapi/bolt-python
import json from urllib.parse import quote from time import time import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.adapter.asgi.async_handler import AsyncSlackRequestHandler from slack_bolt.async_app import AsyncApp from slack_bolt.oa...
0)
assert_*
numeric_literal
tests/adapter_tests_async/test_async_asgi.py
test_url_verification
TestAsyncAsgi
224
null
slackapi/bolt-python
import copy import json from time import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest from slack_bolt.app import App from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_a...
1)
assert_*
numeric_literal
tests/scenario_tests/test_block_suggestion.py
test_success
TestBlockSuggestion
74
null
slackapi/bolt-python
import json from time import time from typing import Optional from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.adapter.bottle import SlackRequestHandler from slack_bolt.app import App from tests.mock_web_api_server import ( setup_...
""
assert
string_literal
tests/adapter_tests/bottle/test_bottle.py
test_events
TestBottle
112
null
slackapi/bolt-python
import json from time import sleep, time from typing import Optional from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Installation from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest from tests.mock_w...
0)
assert_*
numeric_literal
tests/scenario_tests/test_events_org_apps.py
test_team_access_revoked
TestEventsOrgApps
142
null
slackapi/bolt-python
import json import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest from slack_bolt.app import App from tests.mock_web_api_server import assert_received_request_count, cleanup_mock_web_api_server, setup_mock_web_ap...
self)
assert_*
variable
tests/scenario_tests/test_lazy.py
test_lazy
TestErrorHandler
106
null
slackapi/bolt-python
import asyncio import pytest from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.adapter.socket_mode.aiohttp import AsyncSocketModeHandler from slack_bolt.app.async_app import AsyncApp from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_api_server, ) from test...
True
assert
bool_literal
tests/adapter_tests_async/socket_mode/test_async_lazy_listeners.py
test_lazy_listeners
TestSocketModeAiohttp
77
null
slackapi/bolt-python
import logging from slack_bolt import Args, BoltRequest, BoltResponse from slack_bolt.kwargs_injection import build_required_kwargs class TestArgs: def setup_method(self): pass def teardown_method(self): pass def next(self): pass def test_all_values_from_context(self): ...
"FOO"
assert
string_literal
tests/slack_bolt/kwargs_injection/test_args.py
test_all_values_from_context
TestArgs
58
null
slackapi/bolt-python
import json from urllib.parse import quote from time import time import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.adapter.asgi.async_handler import AsyncSlackRequestHandler from slack_bolt.async_app import AsyncApp from slack_bolt.oa...
1)
assert_*
numeric_literal
tests/adapter_tests_async/test_async_asgi.py
test_commands
TestAsyncAsgi
96
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt import BoltResponse from slack_bolt.async_app import AsyncApp from slack_bolt.error import BoltUnhandledRequestError fr...
""
assert
string_literal
tests/scenario_tests_async/test_error_handler.py
test_middleware_errors
TestAsyncErrorHandler
272
null
slackapi/bolt-python
from slack_sdk import WebClient from slack_sdk.web import SlackResponse from slack_bolt.middleware import SingleTeamAuthorization from slack_bolt.middleware.authorization.internals import _build_user_facing_authorize_error_message from slack_bolt.request import BoltRequest from slack_bolt.response import BoltResponse ...
""
assert
string_literal
tests/slack_bolt/middleware/authorization/test_single_team_authorization.py
test_success_pattern
TestSingleTeamAuthorization
36
null
slackapi/bolt-python
import json from time import time import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.app.async_app import AsyncApp from slack_bolt.request.async_request import AsyncBoltRequest from tests.mock_web_api_server import ( assert_receive...
1)
assert_*
numeric_literal
tests/scenario_tests_async/test_events_request_verification.py
test_default
TestAsyncEventsRequestVerification
61
null
slackapi/bolt-python
import json from time import sleep import pytest from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest, BoltContext, BoltAgent from slack_bolt.agent.agent import BoltAgent as BoltAgentDirect from slack_bolt.warning import ExperimentalWarning from tests.mock_web_api_server import ( setup_mock...
"C111"
assert
string_literal
tests/scenario_tests/test_events_agent.py
handle_mention
TestEventsAgent
50
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from tornado.httpclient import HTTPRequest, HTTPResponse from tornado.testing import AsyncHTTPTestCase, gen_test from tornado.web import Application ...
1)
assert_*
numeric_literal
tests/adapter_tests_async/test_tornado.py
test_events
TestTornado
112
null
slackapi/bolt-python
import json from time import time from slack_sdk.web import WebClient from slack_sdk.signature import SignatureVerifier from slack_bolt import App, BoltRequest from tests.mock_web_api_server import ( assert_received_request_count, setup_mock_web_api_server, cleanup_mock_web_api_server, assert_auth_tes...
1)
assert_*
numeric_literal
tests/scenario_tests/test_events_request_verification.py
test_default
TestEventsRequestVerification
60
null
slackapi/bolt-python
import json import time from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.app import App from slack_bolt.request import BoltRequest from tests.mock_web_api_server import assert_auth_test_count, cleanup_mock_web_api_server, setup_mock_web_api_server from tests.utils ...
1)
assert_*
numeric_literal
tests/scenario_tests/test_message_thread_broadcast.py
test_message_handler
TestMessageThreadBroadcast
69
null
slackapi/bolt-python
import asyncio import json import re from functools import wraps from random import random from time import time import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.app.async_app import AsyncApp from slack_bolt.context.async_context imp...
5)
assert_*
numeric_literal
tests/scenario_tests_async/test_events.py
test_simultaneous_requests
TestAsyncEvents
125
null
slackapi/bolt-python
import json import logging import os from time import time from urllib.parse import quote import pytest from slack_sdk.web.async_client import AsyncWebClient from slack_sdk.http_retry.builtin_async_handlers import AsyncConnectionErrorRetryHandler, AsyncRateLimitErrorRetryHandler from slack_sdk.signature import Signatu...
app.logger
assert
complex_expr
tests/scenario_tests_async/test_web_client_customization.py
test_web_client_logger_is_default_app_logger
TestWebClientCustomization
92
null
slackapi/bolt-python
from time import time from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_api_server, ) from tests.utils import remove_os_env_temporarily, restore_os_en...
None
assert
none_literal
tests/scenario_tests/test_ssl_check.py
test_mock_server_is_running
TestSSLCheck
40
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest, BoltContext from slack_bolt.app import App from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_...
view
assert
variable
tests/scenario_tests/test_view_submission.py
simple_listener
85
null
slackapi/bolt-python
import inspect import json from time import time from typing import Callable from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import Ack, App, BoltContext, BoltRequest, Say from tests.mock_web_api_server import ( assert_auth_test_count, assert_received_requ...
1)
assert_*
numeric_literal
tests/scenario_tests/test_app_using_methods_in_class.py
run_app_and_verify
TestAppUsingMethodsInClass
118
null
slackapi/bolt-python
import json import logging from time import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.http_retry import all_builtin_retry_handlers from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest from slack_bolt.app import App from tests.mock_web_api_server...
""
assert
string_literal
tests/scenario_tests/test_web_client_customization.py
test_web_client_customization
TestWebClientCustomization
71
null
slackapi/bolt-python
import json from time import sleep import pytest from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest, BoltContext, BoltAgent from slack_bolt.agent.agent import BoltAgent as BoltAgentDirect from slack_bolt.warning import ExperimentalWarning from tests.mock_web_api_server import ( setup_mock...
None
assert
none_literal
tests/scenario_tests/test_events_agent.py
handle_mention
TestEventsAgent
48
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.app.async_app import AsyncApp from slack_bolt.request.async_request import AsyncBoltRequest from tests.mock_web_api_ser...
""
assert
string_literal
tests/scenario_tests_async/test_dialogs.py
test_success_without_type
TestAsyncAttachmentActions
73
null
slackapi/bolt-python
import json from time import time from typing import Optional from urllib.parse import quote import pytest from slack_sdk.oauth.installation_store import Installation, Bot from slack_sdk.oauth.installation_store.async_installation_store import ( AsyncInstallationStore, ) from slack_sdk.signature import SignatureVe...
""
assert
string_literal
tests/scenario_tests_async/test_installation_store_authorize.py
test_success
TestAsyncInstallationStoreAuthorize
105
null
slackapi/bolt-python
import json from time import time from typing import Optional from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.adapter.bottle import SlackRequestHandler from slack_bolt.app import App from tests.mock_web_api_server import ( setup_...
1)
assert_*
numeric_literal
tests/adapter_tests/bottle/test_bottle.py
test_events
TestBottle
113
null
slackapi/bolt-python
from slack_sdk import WebClient from slack_sdk.web import SlackResponse from slack_bolt.middleware import SingleTeamAuthorization from slack_bolt.middleware.authorization.internals import _build_user_facing_authorize_error_message from slack_bolt.request import BoltRequest from slack_bolt.response import BoltResponse ...
"foo"
assert
string_literal
tests/slack_bolt/middleware/authorization/test_single_team_authorization.py
test_failure_pattern_custom_message
TestSingleTeamAuthorization
81
null
slackapi/bolt-python
import logging import time from concurrent.futures import Executor from ssl import SSLContext import pytest from slack_sdk import WebClient from slack_sdk.oauth.installation_store import FileInstallationStore from slack_sdk.oauth.state_store import FileOAuthStateStore from slack_bolt import App, BoltContext, BoltRequ...
ssl
assert
variable
tests/scenario_tests/test_app.py
handle
TestApp
260
null
slackapi/bolt-python
import datetime import json import logging from time import time from typing import Optional from slack_sdk import WebClient from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Bot, Installation from slack_sdk.signature import SignatureVerifier from slack_bolt import App, Bolt...
None
assert
none_literal
tests/scenario_tests/test_app_actor_user_token.py
handle_events
TestApp
207
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest, BoltResponse from slack_bolt.app import App from slack_bolt.error import BoltUnhandledRequestError from tests.mock_web_api_server impor...
["1"]
assert
collection
tests/scenario_tests/test_error_handler.py
test_custom
TestErrorHandler
118
null
slackapi/bolt-python
import json from time import sleep, time from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest, Say from slack_bolt.authorization import AuthorizeResult from tests.mock_web_api_server import ( assert_auth_test_count, assert_received_reque...
0)
assert_*
numeric_literal
tests/scenario_tests/test_events_shared_channels.py
test_uninstallation_and_revokes
TestEventsSharedChannels
487
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote import falcon from falcon import testing from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.adapter.falcon import SlackAppResource from slack_bolt.app import App from slack_bolt.oauth.oauth_settings im...
1)
assert_*
numeric_literal
tests/adapter_tests/falcon/test_falcon.py
test_events
TestFalcon
106
null
slackapi/bolt-python
import sys from typing import Set import pytest from slack_sdk.models import JsonObject from slack_bolt.error import BoltError from slack_bolt.util.utils import convert_to_dict, get_boot_message from tests.utils import remove_os_env_temporarily, restore_os_env class TestUtil: def setup_method(self): self...
{"foo": "bar"}
assert
collection
tests/slack_bolt/util/test_util.py
test_convert_to_dict
TestUtil
34
null
slackapi/bolt-python
from slack_sdk.models.blocks import DividerBlock from slack_bolt.context.respond.internals import _build_message class TestRespondInternals: def setup_method(self): pass def teardown_method(self): pass def test_metadata(self): message = _build_message( text="Hi there!...
{"foo": "bar"}
assert
collection
tests/slack_bolt/context/test_respond_internals.py
test_metadata
TestRespondInternals
59
null
slackapi/bolt-python
import json import logging from time import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.http_retry import all_builtin_retry_handlers from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest from slack_bolt.app import App from tests.mock_web_api_server...
app.logger
assert
complex_expr
tests/scenario_tests/test_web_client_customization.py
test_web_client_logger_is_default_app_logger
TestWebClientCustomization
76
null
slackapi/bolt-python
import json import logging import os from time import time from urllib.parse import quote import pytest from slack_sdk.web.async_client import AsyncWebClient from slack_sdk.http_retry.builtin_async_handlers import AsyncConnectionErrorRetryHandler, AsyncRateLimitErrorRetryHandler from slack_sdk.signature import Signatu...
2
assert
numeric_literal
tests/scenario_tests_async/test_web_client_customization.py
listener
TestWebClientCustomization
81
null
slackapi/bolt-python
from time import sleep from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest from tests.mock_web_api_server import ( assert_auth_test_count, assert_received_request_count, cleanup_mock_web_api_server, setup_mock_web_api_server, ) from tests.utils import remove_os_env_temporarily,...
1)
assert_*
numeric_literal
tests/scenario_tests/test_events_ignore_self.py
test_self_events
TestEventsIgnoreSelf
41
null
slackapi/bolt-python
import json from urllib.parse import quote from time import time import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.adapter.asgi import SlackRequestHandler from slack_bolt.app import App from slack_bolt.oauth.oauth_settings import OAuthSettings from tes...
response.body
assert
complex_expr
tests/adapter_tests/asgi/test_asgi_http.py
test_oauth
TestAsgiHttp
197
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.adapter.wsgi import SlackRequestHandler from slack_bolt.app import App from slack_bolt.oauth.oauth_settings import OAuthSettings from tests.mock_web_ap...
1)
assert_*
numeric_literal
tests/adapter_tests/wsgi/test_wsgi_http.py
test_commands
TestWsgiHttp
90
null
slackapi/bolt-python
import json import os from time import time from typing import Dict, Any from urllib.parse import quote from unittest import mock from chalice import Chalice, Response from chalice.app import Request from chalice.config import Config from chalice.local import LocalGateway from chalice.test import Client from slack_sdk...
response.get("body")
assert
func_call
tests/adapter_tests/aws/test_aws_chalice.py
test_oauth
TestAwsChalice
404
null
slackapi/bolt-python
import inspect import json from time import time from typing import Callable from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import Ack, App, BoltContext, BoltRequest, Say from tests.mock_web_api_server import ( assert_auth_test_count, assert_received_requ...
True
assert
bool_literal
tests/scenario_tests/test_app_using_methods_in_class.py
test_inspect_behaviors
TestAppUsingMethodsInClass
56
null
slackapi/bolt-python
from time import sleep from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest, Assistant, Say, SetSuggestedPrompts, SetStatus, BoltContext from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_api_server, ) from tests.utils import remove_os_env_temporarily, r...
"D111"
assert
string_literal
tests/scenario_tests/test_events_assistant.py
start_thread
TestEventsAssistant
45
null
slackapi/bolt-python
import json from time import time from unittest import TestCase from urllib.parse import quote from pyramid import testing from pyramid.request import Request from pyramid.response import Response from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.adapter.pyramid imp...
1)
assert_*
numeric_literal
tests/adapter_tests/pyramid/test_pyramid.py
test_events
TestPyramid
97
null
slackapi/bolt-python
import json from time import sleep, time from typing import Optional import pytest as pytest from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Installation from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import App, BoltR...
0)
assert_*
numeric_literal
tests/scenario_tests/test_events_token_revocations.py
test_tokens_revoked
TestEventsTokenRevocations
130
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.app import App from slack_bolt.request import BoltRequest from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_a...
1)
assert_*
numeric_literal
tests/scenario_tests/test_dialogs.py
test_success_without_type
TestAttachmentActions
70
null
slackapi/bolt-python
import json from time import sleep import pytest from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest, BoltContext, BoltAgent from slack_bolt.agent.agent import BoltAgent as BoltAgentDirect from slack_bolt.warning import ExperimentalWarning from tests.mock_web_api_server import ( setup_mock...
True
assert
bool_literal
tests/scenario_tests/test_events_agent.py
assert_target_called
TestEventsAgent
43
null
slackapi/bolt-python
import asyncio import logging from ssl import SSLContext import pytest from slack_sdk import WebClient from slack_sdk.oauth.installation_store import FileInstallationStore from slack_sdk.oauth.state_store import FileOAuthStateStore from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.async_app import...
ssl
assert
variable
tests/scenario_tests_async/test_app.py
handle
TestAsyncApp
205
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt import BoltResponse from slack_bolt.app.async_app import AsyncApp from slack_bolt.authorization import AuthorizeResult ...
"a"
assert
string_literal
tests/scenario_tests_async/test_authorize.py
simple_listener
251
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from fastapi import FastAPI, Depends from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from starlette.requests import Request from starlette.testclient import TestClient from slack_bolt.adapter.fastapi import SlackReq...
1)
assert_*
numeric_literal
tests/adapter_tests/starlette/test_fastapi.py
test_events
TestFastAPI
101
null
slackapi/bolt-python
from slack_bolt.adapter.aws_lambda.lambda_s3_oauth_flow import LambdaS3OAuthFlow from slack_bolt.oauth.oauth_settings import OAuthSettings from tests.utils import remove_os_env_temporarily, restore_os_env class TestLambdaS3OAuthFlow: def setup_method(self): self.old_os_env = remove_os_env_temporarily() ...
None
assert
none_literal
tests/adapter_tests/aws/test_lambda_s3_oauth_flow.py
test_instantiation
TestLambdaS3OAuthFlow
29
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_sdk.oauth import OAuthStateStore from slack_bolt.adapter.aws_lambda import SlackRequestHandler from slack_bolt.adapter.aws_lambda.handler import not_found fr...
1
assert
numeric_literal
tests/adapter_tests/aws/test_aws_lambda.py
test_first_value
TestAWSLambda
74
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote import falcon from falcon import testing from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.adapter.falcon.async_resource import AsyncSlackAppResource from slack_bolt.app.async_app im...
1)
assert_*
numeric_literal
tests/adapter_tests_async/test_async_falcon.py
test_events
TestAsyncFalcon
102
null
slackapi/bolt-python
import inspect import json from time import time from typing import Callable from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import Ack, App, BoltContext, BoltRequest, Say from tests.mock_web_api_server import ( assert_auth_test_count, assert_received_requ...
None
assert
none_literal
tests/scenario_tests/test_app_using_methods_in_class.py
top_level_function
213
null
slackapi/bolt-python
import asyncio import json from time import time from urllib.parse import quote import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.async_app import AsyncApp from slack_bolt.request.async_request import AsyncBoltRequest from tests.mock_...
"FOO"
assert
string_literal
tests/scenario_tests_async/test_lazy.py
async1
TestAsyncLazy
123
null
slackapi/bolt-python
import json import logging from time import time from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web import SlackResponse, WebClient from slack_bolt import Ack, App, BoltRequest from slack_bolt.workflows.step import Complete, Configure, Fail, Update, WorkflowStep from t...
1)
assert_*
numeric_literal
tests/scenario_tests/test_workflow_steps_decorator_with_args.py
test_edit
TestWorkflowStepsDecorator
53
null
slackapi/bolt-python
import logging import time from concurrent.futures import Executor from ssl import SSLContext import pytest from slack_sdk import WebClient from slack_sdk.oauth.installation_store import FileInstallationStore from slack_sdk.oauth.state_store import FileOAuthStateStore from slack_bolt import App, BoltContext, BoltRequ...
None
assert
none_literal
tests/scenario_tests/test_app.py
test_valid_single_auth
TestApp
77
null
slackapi/bolt-python
import json import re from functools import wraps from time import time import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import App, BoltContext, BoltRequest, Say from tests.mock_web_api_server import ( assert_auth_test_count, assert_received_...
1)
assert_*
numeric_literal
tests/scenario_tests/test_events.py
test_middleware
TestEvents
90
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest, BoltResponse from slack_bolt.app import App from slack_bolt.authorization import AuthorizeResult from slack_bolt.request.payload_utils ...
0)
assert_*
numeric_literal
tests/scenario_tests/test_authorize.py
test_failure
TestAuthorize
137
null
slackapi/bolt-python
import inspect import json from time import time from typing import Callable import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.context.async_context import AsyncBoltContext from slack_bolt.app.async_app import AsyncApp from slack_bolt...
1)
assert_*
numeric_literal
tests/scenario_tests_async/test_app_using_methods_in_class.py
run_app_and_verify
TestAppUsingMethodsInClass
125
null
slackapi/bolt-python
import asyncio import json from time import time import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.app.async_app import AsyncApp from slack_bolt.request.async_request import AsyncBoltRequest from tests.mock_web_api_server import ( ...
2
assert
numeric_literal
tests/scenario_tests_async/test_message_thread_broadcast.py
test_string_keyword
TestAsyncMessageThreadBroadcast
79
null
slackapi/bolt-python
import inspect import json from time import time from typing import Callable from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import Ack, App, BoltContext, BoltRequest, Say from tests.mock_web_api_server import ( assert_auth_test_count, assert_received_requ...
self)
assert_*
variable
tests/scenario_tests/test_app_using_methods_in_class.py
run_app_and_verify
TestAppUsingMethodsInClass
119
null
slackapi/bolt-python
import json import re import time from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.app import App from slack_bolt.request import BoltRequest from tests.mock_web_api_server import assert_auth_test_count, cleanup_mock_web_api_server, setup_mock_web_api_server from te...
3
assert
numeric_literal
tests/scenario_tests/test_message_bot.py
test_message_handler
TestBotMessage
76
null
slackapi/bolt-python
import json import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest from slack_bolt.app import App from tests.mock_web_api_server import assert_received_request_count, cleanup_mock_web_api_server, setup_mock_web_ap...
None
assert
none_literal
tests/scenario_tests/test_lazy.py
async2
TestErrorHandler
148
null
slackapi/bolt-python
import datetime import json import logging from time import time from typing import Optional import pytest from slack_sdk.oauth.installation_store import Installation, Bot from slack_sdk.oauth.installation_store.async_installation_store import ( AsyncInstallationStore, ) from slack_sdk.signature import SignatureVe...
""
assert
string_literal
tests/scenario_tests_async/test_app_bot_only.py
test_bot_only_default_off
TestAppBotOnly
77
null
slackapi/bolt-python
import json from time import sleep, time from typing import Optional import pytest as pytest from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Installation from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import App, BoltR...
True
assert
bool_literal
tests/scenario_tests/test_events_token_revocations.py
test_tokens_revoked
TestEventsTokenRevocations
132
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from tornado.httpclient import HTTPRequest, HTTPResponse from tornado.testing import AsyncHTTPTestCase, gen_test from tornado.web import Application from slack_bolt.ad...
1)
assert_*
numeric_literal
tests/adapter_tests/tornado/test_tornado.py
test_events
TestTornado
112
null
slackapi/bolt-python
import asyncio import pytest from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.app.async_app import AsyncApp from slack_bolt.request.async_request import AsyncBoltRequest from tests.mock_web_api_server import ( assert_received_request_count_async, cleanup_mock_web_api_server_async, ass...
1)
assert_*
numeric_literal
tests/scenario_tests_async/test_events_ignore_self.py
test_self_events
TestAsyncEventsIgnoreSelf
42
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltRequest, BoltContext from slack_bolt.app import App from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_...
1)
assert_*
numeric_literal
tests/scenario_tests/test_view_submission.py
test_success
TestViewSubmission
244
null
slackapi/bolt-python
import json from time import sleep, time from typing import Optional from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Installation from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import App, BoltRequest from tests.mock_w...
True
assert
bool_literal
tests/scenario_tests/test_events_org_apps.py
test_team_access_granted
TestEventsOrgApps
107
null
slackapi/bolt-python
import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.adapter.asgi import SlackRequestHandler from slack_bolt.app import App from tests.mock_asgi_server import AsgiTestServer from tests.mock_web_api_server import ( setup_mock_web_api_server, cleanu...
""
assert
string_literal
tests/adapter_tests/asgi/test_asgi_lifespan.py
test_startup
TestAsgiLifespan
46
null
slackapi/bolt-python
import json import time from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.app import App from slack_bolt.request import BoltRequest from tests.mock_web_api_server import assert_auth_test_count, cleanup_mock_web_api_server, setup_mock_web_api_server from tests.utils ...
2
assert
numeric_literal
tests/scenario_tests/test_message_thread_broadcast.py
test_message_handler
TestMessageThreadBroadcast
71
null
slackapi/bolt-python
import json from time import time from typing import Optional from urllib.parse import quote from slack_sdk import WebClient from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Installation, Bot from slack_sdk.signature import SignatureVerifier from slack_bolt import BoltReque...
"a"
assert
string_literal
tests/scenario_tests/test_installation_store_authorize.py
simple_listener
147
null
slackapi/bolt-python
import logging import time from concurrent.futures import Executor from ssl import SSLContext import pytest from slack_sdk import WebClient from slack_sdk.oauth.installation_store import FileInstallationStore from slack_sdk.oauth.state_store import FileOAuthStateStore from slack_bolt import App, BoltContext, BoltRequ...
event
assert
variable
tests/scenario_tests/test_app.py
handle_app_mention
TestApp
40
null
slackapi/bolt-python
import datetime import json import logging from time import time from typing import Optional from slack_sdk import WebClient from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Bot, Installation from slack_sdk.oauth.state_store import FileOAuthStateStore from slack_sdk.signatur...
self)
assert_*
variable
tests/scenario_tests/test_app_bot_only.py
test_installation_store_bot_only_default
TestApp
177
null
slackapi/bolt-python
import json from time import sleep, time from typing import Optional import pytest as pytest from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Installation from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt import App, BoltR...
None
assert
none_literal
tests/scenario_tests/test_events_token_revocations.py
find_installation
MyInstallationStore
42
null
slackapi/bolt-python
import json from time import time from urllib.parse import quote from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from starlette.applications import Starlette from starlette.requests import Request from starlette.routing import Route from starlette.testclient impo...
"607"
assert
string_literal
tests/adapter_tests_async/test_async_starlette.py
test_oauth
TestAsyncStarlette
223
null
slackapi/bolt-python
import json import re import time import pytest from unittest.mock import Mock from slack_sdk.signature import SignatureVerifier from slack_sdk.web import WebClient from slack_bolt.app import App from slack_bolt.request import BoltRequest from tests.mock_web_api_server import ( assert_received_request_count, ...
1)
assert_*
numeric_literal
tests/scenario_tests/test_function.py
test_valid_callback_id_success
TestFunction
70
null
slackapi/bolt-python
import datetime import json import logging from time import time from typing import Optional import pytest from slack_sdk import WebClient from slack_sdk.errors import SlackApiError from slack_sdk.oauth import InstallationStore from slack_sdk.oauth.installation_store import Bot, Installation from slack_sdk.signature i...
2)
assert_*
numeric_literal
tests/scenario_tests/test_app_custom_authorize.py
test_installation_store_only
TestApp
213
null
slackapi/bolt-python
import json import os from time import time from typing import Dict, Any from urllib.parse import quote from unittest import mock from chalice import Chalice, Response from chalice.app import Request from chalice.config import Config from chalice.local import LocalGateway from chalice.test import Client from slack_sdk...
"true"
assert
string_literal
tests/adapter_tests/aws/test_aws_chalice.py
test_lazy_listeners_cli
TestAwsChalice
271
null
slackapi/bolt-python
import datetime import json import logging from time import time from typing import Optional import pytest from slack_sdk.oauth.installation_store import Installation, Bot from slack_sdk.oauth.installation_store.async_installation_store import ( AsyncInstallationStore, ) from slack_sdk.signature import SignatureVe...
1)
assert_*
numeric_literal
tests/scenario_tests_async/test_app_installation_store.py
test_authorize_result
TestApp
96
null
piccolo-orm/piccolo
from __future__ import annotations import ast import asyncio from typing import cast from unittest import TestCase from unittest.mock import MagicMock, patch from piccolo.apps.schema.commands.exceptions import GenerateError from piccolo.apps.schema.commands.generate import ( OutputSchema, generate, get_ou...
type(col_2))
self.assertEqual
func_call
tests/apps/schema/commands/test_generate.py
_compare_table_columns
TestGenerate
55
null