Metadata-Version: 2.1
Name: pytest-exasol-slc
Version: 0.2.0
Summary: 
Author: Mikhail Beck
Author-email: mikhail.beck@exasol.com
Requires-Python: >=3.10,<4
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: exasol-python-extension-common (>=0.4.0)
Requires-Dist: pytest (>=7,<9)
Requires-Dist: pytest-exasol-backend (>=0.2.0)
Description-Content-Type: text/markdown

# 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:

```shell
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 uploaded into the database.
Note, that by default this test will run twice - once for each backend.

```python
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(upload_slc):
    ...
```

