pytest-exasol-saas Plugin
This project has been discontinued. For integration tests running on SaaS please use the pytest-exasol-backend plugin.
The pytest-exasol-saas plugin is a pytest plugin designed to facilitate the integration
testing of projects using the exasol-saas-api.
Features
- Integration with exasol-saas-api: Designed to work closely with the exasol-saas-api.
- Ease of Use: Simplifies the configuration and execution of tests by leveraging the pytest framework, making it accessible to developers familiar with pytest conventions.
Installation
To install the pytest-exasol-saas plugin, you can use pip:
pip install pytest-exasol-saas
Database Instances
Using an Existing Database Instance
By default the fixtures in pytest-exasol-saas Plugin will create instances of Exasol SaaS database with scope session.
If you want to use an existing instance instead, then you can provide the instance's ID with the command line option --saas-database-id <ID> to pytest.
Keeping Database Instances After the Test Session
By default the fixtures in pytest-exasol-saas Plugin will remove the created database instances after the session or in case of errors.
However, if you provide the command line option --keep-saas-database then the pytest-exasol-saas plugin will keep these instances for subsequent inspection or reuse.
Please note hat long-running instances will cause significant costs.
Naming Database Instances
pytest-exasol-saas Plugin will name the database instances using 3 components
- Project Short Tag: Abbreviation of the current project, see below for different options for providing the project short tag.
- Timestamp: Number of seconds since epoc, see Unix Time.
- A dash character
- - User Name: Login name of the current user.
A database instances might for example have the name 1715155224SAPIPY-run indicating it was
- created on Wednesday, May 8, 2024
- in the context of a project with short tag
SAPIPY - by a user with login name starting with
run
Please note that Exasol SaaS limits the length of database names to 10 characters only. So pytest-exasol-saas plugin will shorten the constructed name to 10 characters max.
If running your tests on a server for Continuous Integration (CI) then the name of the user might be not very expressive.
Options for providing the Project Short Tag
- In yaml file
error_code_config.ymlin the project's root directory - CLI option
--project-short-tag <short tag>to pytest - Environment variable
PROJECT_SHORT_TAG
Metadata
Release files for pytest-exasol-saas 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pytest_exasol_saas-0.2.3.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_exasol_saas-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / pytest_exasol_saas-0.2.3.tar.gz
| Download URL | pytest_exasol_saas-0.2.3.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9353e71cf1ce8daa6e892d80c1dbd97425323db7410f16cf9181df15f0957784
|
|
BLAKE2b-256 checksum How to use checksums |
b58520c597e647cbbb75c3a36023e2351e0f3299a212fc135fa5ec0f2ebd27ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.15 Linux/5.15.0-1074-azure
|
Release files / pytest_exasol_saas-0.2.3-py3-none-any.whl
| Download URL | pytest_exasol_saas-0.2.3-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
579853a4edc6d78e33b173b20d57c765fd3bb80feff5cc059378b7ec77df2bc9
|
|
BLAKE2b-256 checksum How to use checksums |
f908520f3ca831c2b0a5b2878944189a77bf52126e2fd5ac9a82779108eb1efc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.15 Linux/5.15.0-1074-azure
|
Security for pytest-exasol-saas 0.2.3
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.