Skip to main content

Testcontainer for Yt

Project description

A way to run https://ytsaurus.tech/docs/en/overview/try-yt#using-docker via testcontainers.

Pypi: https://pypi.org/project/testcontainers-yt-local/

Installation

pip install testcontainers-yt-local

or (to install pytest fixtures also)

pip install "testcontainers-yt-local[pytest]"

Usage

from testcontainers_yt_local.container import YtContainerInstance


with YtContainerInstance() as yt:
    yt_cli = yt.get_client()
    print(yt_cli.list("/"))

or use a fixture (requires testcontainers-yt-local[pytest] installed)

def test_with_fixture(yt_cluster_function):
    # there is a bunch of fixtures available:
    # yt_cluster_session, yt_cluster_function, yt_cluster_module, yt_cluster_class, yt_cluster_package.
    # The only difference is their scope.
    url = f"{yt_cluster_function.proxy_url_http}/ping"
    r = requests.get(url)
    assert r.status_code == 200

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

testcontainers_yt_local-0.17.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

testcontainers_yt_local-0.17.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file testcontainers_yt_local-0.17.0.tar.gz.

File metadata

  • Download URL: testcontainers_yt_local-0.17.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for testcontainers_yt_local-0.17.0.tar.gz
Algorithm Hash digest
SHA256 09818552ead370775f5b79ba660cd5c718532c80d57e523354ca8bf48e0bee7b
MD5 6214cd1b691c13895548afa70dedeb92
BLAKE2b-256 72e3d21ce4a62e624c734518857a278c7b852c9383c89e2f263314f3f2c34994

See more details on using hashes here.

Provenance

The following attestation bundles were made for testcontainers_yt_local-0.17.0.tar.gz:

Publisher: release.yaml on dmi-feo/testcontainers-yt-local

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file testcontainers_yt_local-0.17.0-py3-none-any.whl.

File metadata

File hashes

Hashes for testcontainers_yt_local-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c64ebf4a639cdc2bbe7ca423b841b70422e8486c79b67ac6a5661fc1eccff4d
MD5 539c36ad13d3c74c62ebddfde0023afe
BLAKE2b-256 46cd8395fa05bb9dea157c79d7ae3d1602c293bc2514bc2207a2dd4e0aad424c

See more details on using hashes here.

Provenance

The following attestation bundles were made for testcontainers_yt_local-0.17.0-py3-none-any.whl:

Publisher: release.yaml on dmi-feo/testcontainers-yt-local

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page