Skip to content

Commit

Permalink
#58 Made the plugin using the pyexasol_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Sep 20, 2024
1 parent 3496613 commit d72ddc2
Show file tree
Hide file tree
Showing 6 changed files with 252 additions and 212 deletions.
2 changes: 2 additions & 0 deletions pytest-slc/doc/changes/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* [unreleased](unreleased.md)
* [0.1.0](changes_0.1.0.md)
* [0.2.0](changes_0.2.0.md)
* [0.2.1](changes_0.2.1.md)

<!--- This MyST Parser Sphinx directive is necessary to keep Sphinx happy. We need list here all release letters again, because release droid and other scripts assume Markdown --->
```{toctree}
Expand All @@ -12,5 +13,6 @@ hidden:
unreleased
changes_0.1.0
changes_0.2.0
changes_0.2.1
```
9 changes: 9 additions & 0 deletions pytest-slc/doc/changes/changes_0.2.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 0.2.1 - 2024-09-20

## Summary

🚀 Made this plugin depending on the pytest-extension, using its pyexasol_connection fixture

## Bug fixes

* #58: Use the pyexasol_connection fixture from the pytest-extension.
4 changes: 1 addition & 3 deletions pytest-slc/exasol/pytest_slc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from exasol.pytest_backend import paralleltask
import pytest

import pyexasol
import exasol.bucketfs as bfs
from exasol.python_extension_common.deployment.language_container_deployer import LanguageContainerDeployer
from exasol.python_extension_common.deployment.language_container_builder import LanguageContainerBuilder
Expand Down Expand Up @@ -65,13 +64,12 @@ def export_slc(slc_builder, export_slc_async) -> Path | None:

@pytest.fixture(scope="session")
def upload_slc(slc_builder, export_slc,
backend_aware_database_params, backend_aware_bucketfs_params):
pyexasol_connection, backend_aware_bucketfs_params):
"""
The fixture uploads language container to a database, according to the selected
backends.
"""
if (slc_builder is not None) and (export_slc is not None):
pyexasol_connection = pyexasol.connect(**backend_aware_database_params)
bucketfs_path = bfs.path.build_path(**backend_aware_bucketfs_params,
path=BFS_CONTAINER_DIRECTORY)
deployer = LanguageContainerDeployer(pyexasol_connection=pyexasol_connection,
Expand Down
2 changes: 1 addition & 1 deletion pytest-slc/exasol/pytest_slc/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
# If you need to change the version, do so in the project.toml, e.g. by using `poetry version X.Y.Z`.
MAJOR = 0
MINOR = 2
PATCH = 0
PATCH = 1
VERSION = f"{MAJOR}.{MINOR}.{PATCH}"
Loading

0 comments on commit d72ddc2

Please sign in to comment.