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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_file.py | test_file_upload_with_content_and_tags | assert | numeric_literal | 29 | import io
import json
from datetime import datetime
import pytest
import requests
from steamship_tests import PLUGINS_PATH
from steamship_tests.utils.deployables import deploy_plugin
from steamship import MimeTypes, SteamshipError
from steamship.base.request import SortOrder
from steamship.client import Steamship
fro... | 1 | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_binary_utils.py | test_dump_string | assert | string_literal | 11 | import base64
import json
from steamship.base.model import CamelModel
from steamship.plugin.outputs.raw_data_plugin_output import RawDataPluginOutput
from steamship.utils.binary_utils import flexi_create
def test_dump_string():
data, mime, encoding = flexi_create(string="Hi")
assert data == | "Hi" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_indexer_pipeline_mixin.py | test_set_file_status | assert | string_literal | 20 | import pytest
from steamship import File, Steamship
from steamship.invocable import PackageService
from steamship.invocable.mixins.indexer_pipeline_mixin import IndexerPipelineMixin
@pytest.mark.usefixtures("client")
def test_set_file_status(client: Steamship):
"""Tests that we can inspect the package and mixin r... | "FOO" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_routes_on_superclasses.py | test_l1_routes | assert | string_literal | 30 | from typing import Any, Dict, Type
import pytest
from steamship import Steamship, SteamshipError
from steamship.agents.llms import OpenAI
from steamship.agents.mixins.transports.telegram import TelegramTransport, TelegramTransportConfig
from steamship.agents.react import ReACTAgent
from steamship.agents.schema import... | "foo" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_routes_on_superclasses.py | test_l1_routes | assert | string_literal | 31 | from typing import Any, Dict, Type
import pytest
from steamship import Steamship, SteamshipError
from steamship.agents.llms import OpenAI
from steamship.agents.mixins.transports.telegram import TelegramTransport, TelegramTransportConfig
from steamship.agents.react import ReACTAgent
from steamship.agents.schema import... | "bar" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_routes_on_superclasses.py | test_l1_routes | assert | string_literal | 32 | from typing import Any, Dict, Type
import pytest
from steamship import Steamship, SteamshipError
from steamship.agents.llms import OpenAI
from steamship.agents.mixins.transports.telegram import TelegramTransport, TelegramTransportConfig
from steamship.agents.react import ReACTAgent
from steamship.agents.schema import... | "baz" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_binary_utils.py | test_dump_json | assert | string_literal | 12 | import base64
import json
from steamship.base.model import CamelModel
from steamship.plugin.outputs.raw_data_plugin_output import RawDataPluginOutput
from steamship.utils.binary_utils import flexi_create
def test_dump_json():
assert json.dumps(flexi_create(json="Hi")[0]) == '"Hi"'
assert json.dumps(flexi_crea... | "1.2" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_plugins.py | test_plugin_instance_handle_refs | assert | string_literal | 19 | import uuid
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import PluginInstance, SteamshipError, Workspace
from steamship.data.plugin import Plugin, PluginAdapterType, PluginType
from steamship.data.user import User
def test_plugin_instance_handle_refs():
steamship ... | "1.0" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_enums.py | test_enum_serialization_behavior | assert | string_literal | 18 | __copyright__ = "Steamship"
__license__ = "MIT"
import json
from enum import Enum
from steamship.base.model import CamelModel
def test_enum_serialization_behavior():
assert json.dumps(TrainingPlatform.ECS) == '"ecs"'
t1 = PluginInstance.parse_obj({"training_platform": "ecs"})
t2 = PluginInstance.parse_o... | "ecs" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_mixins.py | test_package_with_mixin_routes | assert | string_literal | 21 | import pytest
from assets.packages.package_with_mixins import PackageWithMixin, TestMixin
from steamship import SteamshipError
from steamship.invocable import Invocable, InvocableRequest, Invocation
from steamship.utils.url import Verb
def invoke(o: Invocable, path: str, **kwargs):
req = InvocableRequest(
... | "text" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_training_input.py | test_training_input | assert | string_literal | 6 | from steamship.plugin.inputs.train_plugin_input import TrainPluginInput
def test_training_input():
input = TrainPluginInput.parse_obj({"pluginInstance": "test", "trainingDataUrl": "test"})
assert input.training_data_url == | "test" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_binary_utils.py | test_dump_json | assert | string_literal | 10 | import base64
import json
from steamship.base.model import CamelModel
from steamship.plugin.outputs.raw_data_plugin_output import RawDataPluginOutput
from steamship.utils.binary_utils import flexi_create
def test_dump_json():
assert json.dumps(flexi_create(json="Hi")[0]) == | '"Hi"' | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_binary_utils.py | test_dump_json | assert | string_literal | 11 | import base64
import json
from steamship.base.model import CamelModel
from steamship.plugin.outputs.raw_data_plugin_output import RawDataPluginOutput
from steamship.utils.binary_utils import flexi_create
def test_dump_json():
assert json.dumps(flexi_create(json="Hi")[0]) == '"Hi"'
assert json.dumps(flexi_cre... | "true" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_workspace.py | test_create_use_delete_workspace | assert | string_literal | 15 | import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError, Workspace
from steamship.base.request import SortOrder
def test_create_use_delete_workspace():
client = get_steamship_client()
default = Workspace.get(client=client)
workspace1 = Workspace.c... | "test" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_workspace.py | test_create_use_delete_workspace | assert | string_literal | 18 | import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError, Workspace
from steamship.base.request import SortOrder
def test_create_use_delete_workspace():
client = get_steamship_client()
default = Workspace.get(client=client)
workspace1 = Workspace.c... | "test2" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_enums.py | test_enum_serialization_behavior | assert | string_literal | 11 | __copyright__ = "Steamship"
__license__ = "MIT"
import json
from enum import Enum
from steamship.base.model import CamelModel
def test_enum_serialization_behavior():
assert json.dumps(TrainingPlatform.ECS) == | '"ecs"' | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_demo_app_spec.py | test_package_spec_fancy_types | assert | string_literal | 21 | from typing import Callable, Optional
import pytest
from assets.packages.configurable_hello_world import HelloWorld
from assets.packages.demo_package import TestPackage
from assets.packages.fancy_types import FancyTypes
from assets.packages.optional_params import OptionalParams
@pytest.mark.parametrize("invocable_han... | "value1" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_indexer_pipeline_mixin.py | test_set_file_status | assert | string_literal | 19 | import pytest
from steamship import File, Steamship
from steamship.invocable import PackageService
from steamship.invocable.mixins.indexer_pipeline_mixin import IndexerPipelineMixin
@pytest.mark.usefixtures("client")
def test_set_file_status(client: Steamship):
"""Tests that we can inspect the package and mixin r... | "status" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_enums.py | test_enum_serialization_behavior | assert | string_literal | 19 | __copyright__ = "Steamship"
__license__ = "MIT"
import json
from enum import Enum
from steamship.base.model import CamelModel
def test_enum_serialization_behavior():
assert json.dumps(TrainingPlatform.ECS) == '"ecs"'
t1 = PluginInstance.parse_obj({"training_platform": "ecs"})
t2 = PluginInstance.parse_o... | "lambda" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_static_instance_methods.py | test_static_instance_methods | assert | string_literal | 12 | __copyright__ = "Steamship"
__license__ = "MIT"
from typing import Any, Callable, Optional
from pydantic import BaseModel, Extra
from steamship.base.model import CamelModel
def test_static_instance_methods():
assert Foo.name() == | "static" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_e2e_mixins.py | test_mixin_and_package_invocation | assert | string_literal | 17 | import pytest
from steamship_tests import PACKAGES_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship import Steamship
@pytest.mark.usefixtures("client")
def test_mixin_and_package_invocation(client: Steamship):
demo_package_path = PACKAGES_PATH / "package_with_mixins.py"
with d... | "package" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_package_instance.py | test_deploy_in_workspace | assert | string_literal | 36 | import base64
import json
import re
import pytest
import requests
from assets.packages.demo_package import TestPackage
from requests import ConnectTimeout
from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship_tests.utils.fixtures import ... | "default" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_use_package.py | test_use_package | assert | string_literal | 66 | import pytest
from steamship_tests import PACKAGES_PATH
from steamship_tests.utils.client import steamship_use
from steamship_tests.utils.deployables import deploy_package
from steamship_tests.utils.fixtures import get_steamship_client
from steamship_tests.utils.random import random_name
from steamship import Steamshi... | "default" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/client/test_client.py | test_client_has_default_workspace_unless_otherwise_specified | assert | string_literal | 12 | import pytest
from steamship_tests.utils.client import TESTING_PROFILE
from steamship_tests.utils.fixtures import get_steamship_client
from steamship_tests.utils.random import random_name
from steamship import Steamship, SteamshipError, Workspace
from steamship.data.user import User
def test_client_has_default_worksp... | "default" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_workspace.py | test_default_workspace | assert | string_literal | 12 | import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError, Workspace
from steamship.base.request import SortOrder
def test_default_workspace():
client = get_steamship_client()
workspace = Workspace.get(client=client)
assert workspace is not None
... | "default" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/integration/test_use_plugin.py | test_use_plugin | assert | string_literal | 69 | import pytest
from steamship_tests import PLUGINS_PATH
from steamship_tests.utils.client import steamship_use_plugin
from steamship_tests.utils.deployables import deploy_plugin
from steamship_tests.utils.fixtures import get_steamship_client
from steamship_tests.utils.random import random_name
from steamship import Ste... | "default" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_e2e_mixins.py | test_mixin_and_package_invocation | assert | string_literal | 14 | import pytest
from steamship_tests import PACKAGES_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship import Steamship
@pytest.mark.usefixtures("client")
def test_mixin_and_package_invocation(client: Steamship):
demo_package_path = PACKAGES_PATH / "package_with_mixins.py"
with d... | "mixin yo" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_package_instance.py | test_instance_invoke | assert | string_literal | 92 | import base64
import json
import re
import pytest
import requests
from assets.packages.demo_package import TestPackage
from requests import ConnectTimeout
from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship_tests.utils.fixtures import ... | "A String" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_mixins.py | test_mixins_declared_in_superclass | assert | string_literal | 20 | import pytest
from assets.packages.package_with_mixins import PackageWithMixin, TestMixin
from steamship import SteamshipError
from steamship.invocable import Invocable, InvocableRequest, Invocation
from steamship.utils.url import Verb
def invoke(o: Invocable, path: str, **kwargs):
req = InvocableRequest(
... | "mixin yo" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/unit/test_config_block.py | test_no_override | assert | string_literal | 29 | from typing import Optional
import pytest
from steamship_tests import TEST_ASSETS_PATH
from steamship import SteamshipError
from steamship.invocable.config import Config
def test_no_override():
c1 = NON_EMPTY_1.copy()
c1.extend_with_json_file(ONE_ONE)
assert c1.int_a == NON_EMPTY_1.int_a
assert c1.in... | "String A" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_static_instance_methods.py | test_static_instance_methods | assert | string_literal | 14 | __copyright__ = "Steamship"
__license__ = "MIT"
from typing import Any, Callable, Optional
from pydantic import BaseModel, Extra
from steamship.base.model import CamelModel
def test_static_instance_methods():
assert Foo.name() == "static"
foo = Foo()
assert foo.name() == | "instance" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_configurable_package_instance.py | test_configurable_instance_invoke | assert | string_literal | 42 | import pytest
from steamship_tests import PACKAGES_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship import PackageInstance, Steamship
@pytest.mark.usefixtures("client")
def test_configurable_instance_invoke(client: Steamship):
greeting1 = "Hola"
config_template = {
"gre... | "defaulted" | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_serialization.py | test_dict_method_should_not_include_client | assert | variable | 16 | import json
import pytest
from steamship.client import Steamship
from steamship.data.block import Block
from steamship.data.file import File
from steamship.data.tags.tag import Tag
@pytest.mark.usefixtures("client")
def test_dict_method_should_not_include_client(client: Steamship):
block = Block(client=client, t... | d | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/client/operations/test_tag_file.py | tag_file | assert | variable | 51 | from enum import Enum
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import Block, DocTag, File, MimeTypes, PluginInstance, Steamship
from steamship.base import TaskState
def count_blocks_with_tag(blocks: [Block], tag_kind: Enum, tag_name: Enum):
c = 0
for block in blocks:
... | t | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_file.py | test_file_list_paging | assert | variable | 51 | import io
import json
from datetime import datetime
import pytest
import requests
from steamship_tests import PLUGINS_PATH
from steamship_tests.utils.deployables import deploy_plugin
from steamship import MimeTypes, SteamshipError
from steamship.base.request import SortOrder
from steamship.client import Steamship
fro... | a | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/client/operations/test_embedding_index.py | test_index_usage | assert | variable | 26 | import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship_tests.utils.random import random_index, random_name
from steamship import SteamshipError, Tag
from steamship.data.embeddings import EmbeddedItem
_TEST_EMBEDDER = "test-embedder"
def _list_equal(actual, expected):
assert ... | a1 | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/unit/trainable/test_model_checkpoints.py | _test_folders_equal | assert | variable | 16 | import os
from pathlib import Path
from assets.plugins.taggers.plugin_trainable_tagger import (
TRAINING_PARAMETERS,
TestTrainableTaggerModel,
)
from steamship_tests.utils.fixtures import get_steamship_client
from steamship.plugin.inputs.train_plugin_input import TrainPluginInput
from steamship.plugin.outputs... | p2 | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_response.py | check_val | assert | variable | 18 | from typing import Any
from steamship.base.mime_types import MimeTypes
from steamship.data.file import File
from steamship.invocable import InvocableResponse
from steamship.plugin.outputs.block_and_tag_plugin_output import BlockAndTagPluginOutput
def check_mime(d: dict, mime: str):
assert d.get("http", {}).get("h... | val | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/unit/test_file_importer.py | _test_resp | assert | variable | 19 | import base64
from assets.plugins.importers.plugin_file_importer import TEST_DOC, TestFileImporterPlugin
from steamship.data.file import File
from steamship.invocable import InvocableResponse
from steamship.invocable.plugin_service import PluginRequest
from steamship.plugin.outputs.raw_data_plugin_output import RawDa... | b64 | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_kv_store.py | test_key_value_store | assert | variable | 45 | from enum import Enum
import pytest
from steamship_tests.utils.client import get_steamship_client
from steamship_tests.utils.random import random_name
from steamship import Steamship, Workspace
from steamship.utils.kv_store import KeyValueStore
@pytest.mark.usefixtures("client")
def test_key_value_store(client: Stea... | res | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_signed_urls.py | test_upload_download_text | assert | variable | 75 | import os
import shutil
import tempfile
from pathlib import Path
from steamship_tests import TEST_ASSETS_PATH
from steamship_tests.utils.fixtures import get_steamship_client
from steamship_tests.utils.random import random_name
from steamship import Workspace
from steamship.data.workspace import SignedUrl
from steamsh... | f2c | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_response.py | check_mime | assert | variable | 10 | from typing import Any
from steamship.base.mime_types import MimeTypes
from steamship.data.file import File
from steamship.invocable import InvocableResponse
from steamship.plugin.outputs.block_and_tag_plugin_output import BlockAndTagPluginOutput
def check_mime(d: dict, mime: str):
assert d.get("http", {}).get("... | mime | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_kv_store.py | test_kv_namespace_works | assert | variable | 31 | from enum import Enum
import pytest
from steamship_tests.utils.client import get_steamship_client
from steamship_tests.utils.random import random_name
from steamship import Steamship, Workspace
from steamship.utils.kv_store import KeyValueStore
@pytest.mark.usefixtures("client")
def test_kv_namespace_works(client: S... | val1 | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_config_template_extraction.py | test_config_parameters | assert | variable | 17 | from typing import Optional
from assets.packages.configurable_hello_world import HelloWorld
from pydantic import Field
from steamship.invocable.config import Config, ConfigParameterType
def test_config_parameters():
config_template = HelloWorld.get_config_parameters()
assert len(config_template) == 4
for... | names | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/unit/test_routes_on_superclasses.py | test_l1_routes | assert | variable | 38 | from typing import Any, Dict, Type
import pytest
from steamship import Steamship, SteamshipError
from steamship.agents.llms import OpenAI
from steamship.agents.mixins.transports.telegram import TelegramTransport, TelegramTransportConfig
from steamship.agents.react import ReACTAgent
from steamship.agents.schema import... | routes | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_task.py | test_task_update | assert | variable | 51 | from __future__ import annotations
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError
from steamship.base.model import CamelModel
from steamship.base.tasks import TaskState
def test_task_update():
client = get_steamship_client()
# We'll backgro... | status | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/client/operations/test_embedding_index.py | test_reset_index | assert | variable | 28 | import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship_tests.utils.random import random_index, random_name
from steamship import SteamshipError, Tag
from steamship.data.embeddings import EmbeddedItem
_TEST_EMBEDDER = "test-embedder"
def test_reset_index():
steamship = get_st... | items_1 | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_plugins.py | test_plugin_create | assert | variable | 48 | import uuid
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import PluginInstance, SteamshipError, Workspace
from steamship.data.plugin import Plugin, PluginAdapterType, PluginType
from steamship.data.user import User
def test_plugin_create():
steamship = get_steamshi... | user_id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/agents/test_react_parse_output.py | test_parse_output | assert | variable | 19 | import pytest
from steamship import Block, File, Steamship
from steamship.agents.react import ReACTOutputParser
@pytest.mark.usefixtures("client")
def test_parse_output(client: Steamship):
file = File.create(client, blocks=[Block(text="test"), Block(text="Another test")])
block_id = file.blocks[0].id
blo... | block_id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/integration/test_e2e_file_importer.py | test_e2e_importer | assert | variable | 24 | import pytest
from assets.plugins.blockifiers.blockifier import TEST_DOC
from steamship_tests import PLUGINS_PATH
from steamship_tests.utils.deployables import deploy_plugin
from steamship import File
from steamship.client import Steamship
@pytest.mark.usefixtures("client")
def test_e2e_importer(client: Steamship):
... | TEST_DOC | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/integration/test_e2e_logging_tagger.py | test_e2e_tagger | assert | variable | 15 | from steamship_tests import PLUGINS_PATH
from steamship_tests.utils.deployables import deploy_plugin
from steamship_tests.utils.fixtures import get_steamship_client
def test_e2e_tagger():
client = get_steamship_client()
parser_path = PLUGINS_PATH / "taggers" / "plugin_logging_tagger.py"
with deploy_plugin(... | test_doc | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/integration/test_e2e_tagger.py | test_e2e_tagger | assert | variable | 24 | import pytest
from steamship_tests import PLUGINS_PATH
from steamship_tests.client.operations.test_tag_file import tag_file
from steamship_tests.utils.deployables import deploy_plugin
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError
def test_e2e_tagger():
client... | test_doc | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/integration/test_use_skill.py | _test_skill_instance | assert | variable | 18 | import pytest
from steamship_tests import PLUGINS_PATH
from steamship_tests.utils.client import steamship_use_skill
from steamship_tests.utils.deployables import deploy_plugin
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError
from steamship.client.steamship import SKI... | test_str | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/unit/trainable/test_model_checkpoints.py | _test_folders_equal | assert | variable | 21 | import os
from pathlib import Path
from assets.plugins.taggers.plugin_trainable_tagger import (
TRAINING_PARAMETERS,
TestTrainableTaggerModel,
)
from steamship_tests.utils.fixtures import get_steamship_client
from steamship.plugin.inputs.train_plugin_input import TrainPluginInput
from steamship.plugin.outputs... | p2_files | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/server/test_package_local.py | test_invoke_package_in_python | assert | variable | 14 | from assets.packages.hello_world import HelloWorld, handler
from steamship.invocable import InvocableRequest, Invocation
NAME = "Ted"
RES_EMPTY = "Hello, Person"
RES_NAME = f"Hello, {NAME}"
def test_invoke_package_in_python():
package = HelloWorld()
assert package.greet().data == RES_EMPTY
assert packa... | RES_NAME | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/unit/test_response_post_update.py | test_response_post_update_can_update_task | assert | variable | 18 | import pytest
from steamship_tests.plugin.unit.trainable.util import create_dummy_training_task
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError
from steamship.base.tasks import Task, TaskState
from steamship.invocable import InvocableResponse
def test_response_post... | new_state | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/server/test_package_local.py | test_invoke_package_in_python | assert | variable | 13 | from assets.packages.hello_world import HelloWorld, handler
from steamship.invocable import InvocableRequest, Invocation
NAME = "Ted"
RES_EMPTY = "Hello, Person"
RES_NAME = f"Hello, {NAME}"
def test_invoke_package_in_python():
package = HelloWorld()
assert package.greet().data == | RES_EMPTY | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_task.py | test_background_task_call | assert | variable | 20 | from __future__ import annotations
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError
from steamship.base.model import CamelModel
from steamship.base.tasks import TaskState
def test_background_task_call():
client = get_steamship_client()
# The ... | NoOpResult | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_task.py | test_task_update | assert | variable | 48 | from __future__ import annotations
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError
from steamship.base.model import CamelModel
from steamship.base.tasks import TaskState
def test_task_update():
client = get_steamship_client()
# We'll backgro... | orig_input | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_plugins.py | test_plugin_create | pytest.raises | variable | 28 | import uuid
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import PluginInstance, SteamshipError, Workspace
from steamship.data.plugin import Plugin, PluginAdapterType, PluginType
from steamship.data.user import User
def test_plugin_create():
steamship = get_steamshi... | TypeError) | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/unit/test_response_post_update.py | test_response_post_update_can_update_task | assert | variable | 20 | import pytest
from steamship_tests.plugin.unit.trainable.util import create_dummy_training_task
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError
from steamship.base.tasks import Task, TaskState
from steamship.invocable import InvocableResponse
def test_response_post... | new_output | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/unit/test_service.py | test_plugin_service_is_abstract | pytest.raises | variable | 18 | from pathlib import Path
from typing import Type, Union
import pytest
from steamship.base.client import Client
from steamship.invocable import Config, InvocableResponse
from steamship.invocable.plugin_service import PluginRequest, PluginService
from steamship.plugin.inputs.train_plugin_input import TrainPluginInput
f... | TypeError) | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_zip_archives.py | test_zip_unzip | assert | variable | 43 | import os
import shutil
import tempfile
from pathlib import Path
from steamship_tests import TEST_ASSETS_PATH
from steamship.utils.zip_archives import unzip_folder, zip_folder
def test_zip_unzip():
# Copy the test assets to a temp folder
tempbase = tempfile.mkdtemp()
shutil.copytree(TEST_ASSETS_PATH, os.... | dest_files | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_package_instance.py | test_instance_invoke | assert | variable | 111 | import base64
import json
import re
import pytest
import requests
from assets.packages.demo_package import TestPackage
from requests import ConnectTimeout
from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship_tests.utils.fixtures import ... | base64_palm | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_signed_url_package.py | test_signed_url_package | assert | variable | 20 | import logging
from assets.packages.signed_url_package import TEST_STRING
from steamship_tests import PACKAGES_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship_tests.utils.fixtures import get_steamship_client
from steamship.data.workspace import SignedUrl
from steamship.utils.signed_ur... | TEST_STRING | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_task.py | test_task_update | assert | variable | 52 | from __future__ import annotations
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError
from steamship.base.model import CamelModel
from steamship.base.tasks import TaskState
def test_task_update():
client = get_steamship_client()
# We'll backgro... | orig_status | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/unit/test_response_post_update.py | test_response_post_update_can_update_task | assert | variable | 19 | import pytest
from steamship_tests.plugin.unit.trainable.util import create_dummy_training_task
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError
from steamship.base.tasks import Task, TaskState
from steamship.invocable import InvocableResponse
def test_response_post... | new_message | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_configuration.py | test_incorrectly_formatted_base_uris | assert | variable | 27 | import os
import webbrowser
from unittest import mock
import pytest
from pydantic import ValidationError
from steamship import Configuration, SteamshipError
from steamship.base.configuration import DEFAULT_API_BASE, DEFAULT_APP_BASE, DEFAULT_WEB_BASE
TEST_WEB_BASE = "https://app.test.com/"
TEST_APP_BASE = "https://t... | TEST_WEB_BASE | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_configuration.py | test_incorrectly_formatted_base_uris | assert | variable | 28 | import os
import webbrowser
from unittest import mock
import pytest
from pydantic import ValidationError
from steamship import Configuration, SteamshipError
from steamship.base.configuration import DEFAULT_API_BASE, DEFAULT_APP_BASE, DEFAULT_WEB_BASE
TEST_WEB_BASE = "https://app.test.com/"
TEST_APP_BASE = "https://t... | TEST_APP_BASE | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/base/test_configuration.py | test_incorrectly_formatted_base_uris | assert | variable | 29 | import os
import webbrowser
from unittest import mock
import pytest
from pydantic import ValidationError
from steamship import Configuration, SteamshipError
from steamship.base.configuration import DEFAULT_API_BASE, DEFAULT_APP_BASE, DEFAULT_WEB_BASE
TEST_WEB_BASE = "https://app.test.com/"
TEST_APP_BASE = "https://t... | TEST_API_BASE | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/integration/test_e2e_generator.py | test_e2e_generate_from_image | assert | variable | 31 | import pytest
import requests
from assets.plugins.generators.test_generator_returns_bytes import TEST_BYTES_STRING
from steamship_tests import PLUGINS_PATH, TEST_ASSETS_PATH
from steamship_tests.utils.deployables import deploy_plugin
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import... | fetched_bytes | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_client.py | test_incorrectly_formatted_base_uris | assert | variable | 31 | __copyright__ = "Steamship"
__license__ = "MIT"
from unittest.mock import patch
import pytest
from pydantic import ValidationError
from steamship_tests.utils.client import TESTING_PROFILE
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import Steamship
from steamship.base.client import... | TEST_WEB_BASE | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/test_client.py | test_incorrectly_formatted_base_uris | assert | variable | 32 | __copyright__ = "Steamship"
__license__ = "MIT"
from unittest.mock import patch
import pytest
from pydantic import ValidationError
from steamship_tests.utils.client import TESTING_PROFILE
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import Steamship
from steamship.base.client import... | TEST_APP_BASE | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_plugins.py | test_plugin_instance_quick_create | assert | complex_expr | 22 | import uuid
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import PluginInstance, SteamshipError, Workspace
from steamship.data.plugin import Plugin, PluginAdapterType, PluginType
from steamship.data.user import User
def test_plugin_instance_quick_create():
steamship... | p3.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_plugins.py | test_plugin_instance_quick_create | assert | complex_expr | 23 | import uuid
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import PluginInstance, SteamshipError, Workspace
from steamship.data.plugin import Plugin, PluginAdapterType, PluginType
from steamship.data.user import User
def test_plugin_instance_quick_create():
steamship... | p2.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_plugins.py | test_plugin_instance_quick_create | assert | complex_expr | 24 | import uuid
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import PluginInstance, SteamshipError, Workspace
from steamship.data.plugin import Plugin, PluginAdapterType, PluginType
from steamship.data.user import User
def test_plugin_instance_quick_create():
steamship... | p4.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/client/operations/test_embed_file.py | test_file_parse | assert | complex_expr | 55 | from steamship_tests.utils.fixtures import get_steamship_client
from steamship_tests.utils.random import random_index
from steamship import DocTag, File, MimeTypes, PluginInstance, Tag
_TEST_EMBEDDER = "test-embedder"
T = "A nice poem"
P1_1 = "Roses are red."
P1_2 = "Violets are blue."
P2_1 = "Sugar is sweet."
P2_2 ... | file.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/deployables.py | _check_user | assert | complex_expr | 143 | import contextlib
import io
import os
import zipfile
from pathlib import Path
from typing import Any, Dict, Optional
from steamship_tests import ROOT_PATH, SRC_PATH, TEST_ASSETS_PATH
from steamship import Package, PackageInstance, PackageVersion, Steamship
from steamship.data.plugin import HostingType, Plugin
from st... | user.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/client/test_task_dependencies.py | test_task_dependencies_parallel_failure | assert | complex_expr | 35 | from typing import List
import pytest
from pydantic import BaseModel
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError, Task, TaskState
def schedule_task(client, please_fail: bool = False, dependencies: List[Task] = None) -> Task:
response = client.post(
... | e.message | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/deployables.py | deploy_plugin | assert | complex_expr | 90 | import contextlib
import io
import os
import zipfile
from pathlib import Path
from typing import Any, Dict, Optional
from steamship_tests import ROOT_PATH, SRC_PATH, TEST_ASSETS_PATH
from steamship import Package, PackageInstance, PackageVersion, Steamship
from steamship.data.plugin import HostingType, Plugin
from st... | plugin.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_workspace.py | test_get_workspace | assert | complex_expr | 14 | import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError, Workspace
from steamship.base.request import SortOrder
def test_get_workspace():
client = get_steamship_client()
default = Workspace.get(client=client)
workspace1 = Workspace.create(client=c... | default.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/unit/trainable/test_model_checkpoints.py | test_model_can_save_to_and_load_from_checkpoint | assert | complex_expr | 62 | import os
from pathlib import Path
from assets.plugins.taggers.plugin_trainable_tagger import (
TRAINING_PARAMETERS,
TestTrainableTaggerModel,
)
from steamship_tests.utils.fixtures import get_steamship_client
from steamship.plugin.inputs.train_plugin_input import TrainPluginInput
from steamship.plugin.outputs... | model.path | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/deployables.py | deploy_package | assert | complex_expr | 130 | import contextlib
import io
import os
import zipfile
from pathlib import Path
from typing import Any, Dict, Optional
from steamship_tests import ROOT_PATH, SRC_PATH, TEST_ASSETS_PATH
from steamship import Package, PackageInstance, PackageVersion, Steamship
from steamship.data.plugin import HostingType, Plugin
from st... | package.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/utils/deployables.py | deploy_package | assert | complex_expr | 131 | import contextlib
import io
import os
import zipfile
from pathlib import Path
from typing import Any, Dict, Optional
from steamship_tests import ROOT_PATH, SRC_PATH, TEST_ASSETS_PATH
from steamship import Package, PackageInstance, PackageVersion, Steamship
from steamship.data.plugin import HostingType, Plugin
from st... | version.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_package_instance.py | test_package_instance_get | assert | complex_expr | 41 | import base64
import json
import re
import pytest
import requests
from assets.packages.demo_package import TestPackage
from requests import ConnectTimeout
from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship_tests.utils.fixtures import ... | instance.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_chat.py | test_chat_create | assert | complex_expr | 20 | import uuid
import pytest
from steamship import DocTag
from steamship.agents.schema import ChatHistory
from steamship.client import Steamship
from steamship.data import TagKind
from steamship.data.tags.tag_constants import ChatTag, RoleTag, TagValueKey
@pytest.mark.usefixtures("client")
def test_chat_create(client: ... | DocTag.CHAT | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_configurable_package_instance.py | test_configurable_instance_invoke | assert | complex_expr | 67 | import pytest
from steamship_tests import PACKAGES_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship import PackageInstance, Steamship
@pytest.mark.usefixtures("client")
def test_configurable_instance_invoke(client: Steamship):
greeting1 = "Hola"
config_template = {
"gre... | instance2.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_configurable_package_instance.py | test_configurable_instance_invoke | assert | complex_expr | 71 | import pytest
from steamship_tests import PACKAGES_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship import PackageInstance, Steamship
@pytest.mark.usefixtures("client")
def test_configurable_instance_invoke(client: Steamship):
greeting1 = "Hola"
config_template = {
"gre... | instance3.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_package_instance.py | test_deploy_in_workspace | assert | complex_expr | 40 | import base64
import json
import re
import pytest
import requests
from assets.packages.demo_package import TestPackage
from requests import ConnectTimeout
from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship_tests.utils.fixtures import ... | workspace.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_chat.py | test_chat_append_system | assert | complex_expr | 23 | import uuid
import pytest
from steamship import DocTag
from steamship.agents.schema import ChatHistory
from steamship.client import Steamship
from steamship.data import TagKind
from steamship.data.tags.tag_constants import ChatTag, RoleTag, TagValueKey
@pytest.mark.usefixtures("client")
def test_chat_append_system(c... | TagKind.CHAT | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_chat.py | test_chat_append_system | assert | complex_expr | 24 | import uuid
import pytest
from steamship import DocTag
from steamship.agents.schema import ChatHistory
from steamship.client import Steamship
from steamship.data import TagKind
from steamship.data.tags.tag_constants import ChatTag, RoleTag, TagValueKey
@pytest.mark.usefixtures("client")
def test_chat_append_system(c... | ChatTag.ROLE | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_plugins.py | test_deploy_in_workspace | assert | complex_expr | 16 | import uuid
import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import PluginInstance, SteamshipError, Workspace
from steamship.data.plugin import Plugin, PluginAdapterType, PluginType
from steamship.data.user import User
def test_deploy_in_workspace():
client = get_steam... | workspace.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/client/operations/test_embed_file.py | test_file_index | assert | complex_expr | 44 | from steamship_tests.utils.fixtures import get_steamship_client
from steamship_tests.utils.random import random_index
from steamship import DocTag, File, MimeTypes, PluginInstance, Tag
_TEST_EMBEDDER = "test-embedder"
T = "A nice poem"
P1_1 = "Roses are red."
P1_2 = "Violets are blue."
P2_1 = "Sugar is sweet."
P2_2 ... | MimeTypes.MKD | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/client/test_task_dependencies.py | on_task_check | assert | complex_expr | 30 | from typing import List
import pytest
from pydantic import BaseModel
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError, Task, TaskState
def schedule_task(client, please_fail: bool = False, dependencies: List[Task] = None) -> Task:
response = client.post(
... | task1.task_id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/data/test_workspace.py | test_get_workspace | assert | complex_expr | 13 | import pytest
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import SteamshipError, Workspace
from steamship.base.request import SortOrder
def test_get_workspace():
client = get_steamship_client()
default = Workspace.get(client=client)
workspace1 = Workspace.create(client=c... | workspace1.id | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/integration/test_e2e_generator.py | test_generate_block_public_data | assert | complex_expr | 27 | import pytest
import requests
from assets.plugins.generators.test_generator_returns_bytes import TEST_BYTES_STRING
from steamship_tests import PLUGINS_PATH, TEST_ASSETS_PATH
from steamship_tests.utils.deployables import deploy_plugin
from steamship_tests.utils.fixtures import get_steamship_client
from steamship import... | MimeTypes.PNG | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/plugin/integration/test_use_plugin.py | test_use_plugin_fails_with_same_instance_name_but_different_config_unless_anon | assert | complex_expr | 48 | import pytest
from steamship_tests import PLUGINS_PATH
from steamship_tests.utils.client import steamship_use_plugin
from steamship_tests.utils.deployables import deploy_plugin
from steamship_tests.utils.fixtures import get_steamship_client
from steamship_tests.utils.random import random_name
from steamship import Ste... | plugin.handle | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_package_instance.py | test_plugin_instance_handle_refs | assert | complex_expr | 40 | import base64
import json
import re
import pytest
import requests
from assets.packages.demo_package import TestPackage
from requests import ConnectTimeout
from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship_tests.utils.fixtures import ... | package.handle | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_package_instance.py | test_plugin_instance_handle_refs | assert | complex_expr | 41 | import base64
import json
import re
import pytest
import requests
from assets.packages.demo_package import TestPackage
from requests import ConnectTimeout
from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH
from steamship_tests.utils.deployables import deploy_package
from steamship_tests.utils.fixtures import ... | version.handle | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
steamship-core/python-client | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | train | train | tests/steamship_tests/app/integration/test_use_package.py | test_use_package_fails_with_same_instance_name_but_different_config_unless_anon | assert | complex_expr | 48 | import pytest
from steamship_tests import PACKAGES_PATH
from steamship_tests.utils.client import steamship_use
from steamship_tests.utils.deployables import deploy_package
from steamship_tests.utils.fixtures import get_steamship_client
from steamship_tests.utils.random import random_name
from steamship import Steamshi... | package.handle | d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7 | 240 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.