pytest-influx
Pytest plugin for managing your influxdb instance between test runs. Currently only removes all records from influx between tests.
Installation
pip install pytest-influx
Configuring Influx Client
Provide values through environment variables for:
INFLUXDB_URL-> default:http://localhost:8086INFLUXDB_TOKEN-> default:testINFLUXDB_ORG-> defaulttestINFLUXDB_BUCKET-> defaulttest
Usage
from pytest_influx import clean_db
@clean_db
def test_influx_interraction():
pass
@clean_db
def test_other_influx_interraction():
pass
Release files for pytest-influx 0.1.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 | |
|---|---|---|---|
| pytest_influx-0.1.0.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_influx-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.4 kB
Release files / pytest_influx-0.1.0.tar.gz
| Download URL | pytest_influx-0.1.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f8ae644216cde43d0a20bd7c8ef876d9febd297b89bf6b74e450ebf451e0b39
|
|
BLAKE2b-256 checksum How to use checksums |
7e0934e05ccdeb78b1ae73fbbba9e389c8d90ffd1c51839f1853f528b0b4ee5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Darwin/21.6.0
|
Release files / pytest_influx-0.1.0-py3-none-any.whl
| Download URL | pytest_influx-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7332213f0c02de6872a5b43789c0a8cd81f452f1d1de490bb3064b22a0b4cddc
|
|
BLAKE2b-256 checksum How to use checksums |
1937d01e6cc33c0cec3475154c2e4dc0842734ba1782eda230faabb9ddde57c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Darwin/21.6.0
|