Skip to main content

pytest-influx

Build Status License: MIT

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:

  1. INFLUXDB_URL -> default: http://localhost:8086
  2. INFLUXDB_TOKEN -> default: test
  3. INFLUXDB_ORG -> default test
  4. INFLUXDB_BUCKET -> default test

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)

Source distribution for pytest-influx 0.1.0
File Size Uploaded
pytest_influx-0.1.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-influx 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page