pytest-bg-process
Pytest plugin to initialize background process.
The process will start once before all the tests using subprocess.Popen and will be killed once all the tests finished.
Installation
pip install pytest-bg-process
Configuration
From pytest configuration:
- background-cmd:
- Path to command to run at background
- Default: None
- background-cmd-env:
- Environmental variable to path to command to run at background.
- Has higher priority than background-cmd.
- Default: None
- background-pid:
- Path to save PID data of the background process.
- Default: background.pid
- background-log:
- Path to save log data of the background process.
- Default: background.log
Example
Using background-cmd
[pytest]
background-cmd=redis-server
background-pid=redis.pid
background-log=redis.log
Using background-cmd-env
[pytest]
background-cmd-env=REDIS_CMD
background-pid=redis.pid
background-log=redis.log
then
REDIS_CMD=redis-server && pytest
Metadata
Release files for pytest-bg-process 0.0.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 | Actions |
|---|---|---|---|---|
| pytest-bg-process-0.0.3.tar.gz | 3.6 kB | Without provenance | Details for pytest-bg-process-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_bg_process-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pytest_bg_process-0.0.3-py3-none-any.whl |
Total release size: 7.6 kB
Release files / pytest-bg-process-0.0.3.tar.gz
| Download URL | pytest-bg-process-0.0.3.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de68955426b6f37ad5b49a20a0f3c906a5b5e275fa399caecb5e158f04f4ab8a
|
|
BLAKE2b-256 checksum How to use checksums |
dfc0fe32a563f53f7e8a1d4f0d8d7b994a8e30878fe0c1e1fa60e36489397898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pytest_bg_process-0.0.3-py3-none-any.whl
| Download URL | pytest_bg_process-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fcbdedf5ef29a4f1ff4c8d48b887b3e3ec1da2b3bfc4490768e32fc88238ad73
|
|
BLAKE2b-256 checksum How to use checksums |
2f43ef33a8327e24f66da94e2971992dd02c4f7eec53b581dacda24036b33d0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for pytest-bg-process 0.0.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.