Description
Provides a pytest marker integration for integration tests.
This marker automatically applies to all tests in a specified integration test folder.
Integration tests will not run by default, which is useful for cases where an external dependency
needs to be set up first (such as a database service).
Installation
This is a pure python package, so it can be installed with pip install pytest-integration-mark
or any other dependency manager.
Usage
After installation:
Running pytest as usual:
- Tests marked with
@pytest.mark.integrationwill be skipped - Tests in
./tests/integration/...will be skipped
Running pytest --with-integration:
- Tests marked with
@pytest.mark.integrationwill run - Tests in
./tests/integration/...will run
Running pytest --with-integration --integration-tests-folder integration:
- Tests marked with
@pytest.mark.integrationwill run - Tests in
./integration/...will run
Development
This library uses the poetry package manager, which has to be installed before installing
other dependencies. Afterwards, run poetry install to create a virtualenv and install all dependencies.
To then activate that environment, use poetry shell. To run a command in the environment without activating it,
use poetry run <command>.
Black is used (and enforced via workflows) to format all code. Poetry will install it
automatically, but running it is up to the user. To format the entire project, run black . inside the virtualenv.
Contributing
This project uses the Apache 2.0 license and is maintained by the data science team @ Barbora. All contribution are welcome in the form of PRs or raised issues.
Metadata
Release files for pytest-integration-mark 0.2.0
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_integration_mark-0.2.0.tar.gz | 6.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_integration_mark-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / pytest_integration_mark-0.2.0.tar.gz
| Download URL | pytest_integration_mark-0.2.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f3580fba9aa7fecc9ede2385ae5c0c1414c688cc4e8511ccb61f65025508a14
|
|
BLAKE2b-256 checksum How to use checksums |
431de091051123391bc3b7706c2e2d91f35e448b359fd697967ca93cc2fa99e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1037-azure
|
Release files / pytest_integration_mark-0.2.0-py3-none-any.whl
| Download URL | pytest_integration_mark-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfff273d47922c2d750923e06ac65bda20ff1c016adba187dee20840f0d5869b
|
|
BLAKE2b-256 checksum How to use checksums |
2529d7c0776cce4466265fe355faa1b10ffbc14a4b9e7835389aace1ffcbe1f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.3 Linux/5.15.0-1037-azure
|
Security for pytest-integration-mark 0.2.0
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.