Skip to main content

pytest-exasol-slc Plugin

The pytest-exasol-slc plugin provides a pytest fixtures for building and uploading a script language container into the database. The fixtures are backend agnostic. They run for the selected backends (see the documentation for the pytest-exasol-backend plugin).

Installation

The pytest-exasol-slc plugin can be installed using pip:

pip install pytest-exasol-slc

Usage in Tests

Below is an example of a test that requires a script language container to be built and deployed in the database. The example test case overrides two fixtures used internally by the fixture deployed_slc in this plugin:

  • Fixture language_alias provides a meaningful name for the language alias.
  • Fixture slc_builder prepares the structure of the SLC used in the example test case.

The language container will be activated with value returned by the fixture language_alias. Note, that by default the test will run twice - once for each backend.

import pytest

@pytest.fixture(scope='session')
def language_alias():
    return "MY_LANGUAGE_ALIAS"

@pytest.fixture(scope='session')
def slc_builder(use_onprem, use_saas):
    if use_onprem or use_saas:
        with language_container_factory() as container_builder:
            yield container_builder
    else:
        yield None

def test_something_with_slc(deployed_slc):
    ...

Alternatively, the language container can be deployed using the function version of this fixture. The function can be called multiple times providing an opportunity to activate the language container with different aliases.

import pytest

@pytest.fixture(scope='session')
def slc_builder(use_onprem, use_saas):
    if use_onprem or use_saas:
        with language_container_factory() as container_builder:
            yield container_builder
    else:
        yield None

def test_something_with_slc(deploy_slc):
    deploy_slc("MY_LANGUAGE_ALIAS")
    ...

Metadata

Release files for pytest-exasol-slc 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-exasol-slc 0.4.1
File Size Uploaded Provenance Actions
pytest_exasol_slc-0.4.1.tar.gz 3.9 kB Without provenance Details for pytest_exasol_slc-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-exasol-slc 0.4.1
File Interpreter ABI Platform Actions
pytest_exasol_slc-0.4.1-py3-none-any.whl Python 3 none any Details for pytest_exasol_slc-0.4.1-py3-none-any.whl

Total release size: 8.6 kB

Release files / pytest_exasol_slc-0.4.1.tar.gz

Download URL pytest_exasol_slc-0.4.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
08ada14b93b024fea46e6bff76a2bbc81a8d9682ec2e93b4d6b555766706aab5
BLAKE2b-256 checksum
How to use checksums
bc0baa9d2f952dfde0a89e0db2179b7a48dcf9b8397d6bdc0d70a178508c0ff9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.12.3 Linux/6.11.0-1018-azure

Release files / pytest_exasol_slc-0.4.1-py3-none-any.whl

Download URL pytest_exasol_slc-0.4.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3d366d1f99a8011f0a1da44caa709042c82928e6e9fdfd8c82e777a4e255313
BLAKE2b-256 checksum
How to use checksums
313f7f785258a795118bc4eae3e6bef5585abf5adf200c8061476f943affb350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.12.3 Linux/6.11.0-1018-azure

Security for pytest-exasol-slc 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page