-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,834 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,3 +161,6 @@ cython_debug/ | |
|
||
|
||
.lint.* | ||
|
||
# Emacs | ||
TAGS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.html-documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# pytest-saas Plugin | ||
|
||
The `pytest-exasol-saas` plugin is a pytest plugin designed to facilitate the integration | ||
testing of projects using the [exasol-saas-api](https://github.com/exasol/saas-api-python). | ||
|
||
## 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: | ||
|
||
```shell | ||
pip install pytest-exasol-saas | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Changes | ||
|
||
* [0.2.0](changes_0.2.0.md) | ||
* [0.1.0](changes_0.1.0.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} | ||
--- | ||
hidden: | ||
--- | ||
changes_0.2.0 | ||
changes_0.1.0 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Pytest Plugin for Exasol SaaS 0.1.0, released tbd | ||
|
||
## Summary | ||
|
||
🚀 Initial Release of the pytest-saas Plugin | ||
|
||
This version introduces the `pytest-saas` plugin providing pytest functionalities for the API to Exasol SaaS instances provided by [exasol-saas-api](https://github.com/exasol/saas-api-python). | ||
|
||
## Features | ||
|
||
* #9: Added sub-project for exasol-saas-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ATTENTION: | ||
# This file is generated by exasol/toolbox/pre_commit_hooks/package_version.py when using: | ||
# * either "poetry run nox -s fix" | ||
# * or "poetry run version-check <path/version.py> --fix" | ||
# Do not edit this file manually! | ||
# 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 = 1 | ||
PATCH = 0 | ||
VERSION = f"{MAJOR}.{MINOR}.{PATCH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
"""Configuration for nox based task runner""" | ||
from __future__ import annotations | ||
|
||
from dataclasses import dataclass | ||
from pathlib import Path | ||
from typing import ( | ||
Any, | ||
Iterable, | ||
MutableMapping, | ||
) | ||
|
||
from nox import Session | ||
|
||
|
||
@dataclass(frozen=True) | ||
class Config: | ||
"""Project specific configuration used by nox infrastructure""" | ||
|
||
root: Path = Path(__file__).parent | ||
doc: Path = Path(__file__).parent / "doc" | ||
version_file: Path = Path(__file__).parent / "exasol" / "pytest_saas" / "version.py" | ||
path_filters: Iterable[str] = ("dist", ".eggs", "venv", "metrics-schema") | ||
|
||
@staticmethod | ||
def pre_integration_tests_hook( | ||
_session: Session, _config: Config, _context: MutableMapping[str, Any] | ||
) -> bool: | ||
"""Implement if project specific behaviour is required""" | ||
return True | ||
|
||
@staticmethod | ||
def post_integration_tests_hook( | ||
_session: Session, _config: Config, _context: MutableMapping[str, Any] | ||
) -> bool: | ||
"""Implement if project specific behaviour is required""" | ||
return True | ||
|
||
|
||
PROJECT_CONFIG = Config() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""defines nox tasks/targets for this project""" | ||
import sys | ||
|
||
import nox | ||
|
||
print(sys.path) | ||
# imports all nox task provided by the toolbox | ||
from exasol.toolbox.nox.tasks import * # pylint: disable=wildcard-import disable=unused-wildcard-import | ||
|
||
# default actions to be run if nothing is explicitly specified with the -s option | ||
nox.options.sessions = ["fix"] |
Oops, something went wrong.