Pytest plugin for managing your influx instance between test runs
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest_influx-0.1.0.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_influx-0.1.0.tar.gz.
File metadata
- Download URL: pytest_influx-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f8ae644216cde43d0a20bd7c8ef876d9febd297b89bf6b74e450ebf451e0b39
|
|
| MD5 |
bf65bc7ed29ba82755c96cb59926ca10
|
|
| BLAKE2b-256 |
7e0934e05ccdeb78b1ae73fbbba9e389c8d90ffd1c51839f1853f528b0b4ee5c
|
File details
Details for the file pytest_influx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pytest_influx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7332213f0c02de6872a5b43789c0a8cd81f452f1d1de490bb3064b22a0b4cddc
|
|
| MD5 |
5fb3b9e1ff2ebbc30aef1edde459e889
|
|
| BLAKE2b-256 |
1937d01e6cc33c0cec3475154c2e4dc0842734ba1782eda230faabb9ddde57c5
|