Skip to main content

Pytest plugin for managing your influx instance between test runs

Project description

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

Project details


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)

Uploaded Source

Built Distribution

pytest_influx-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for pytest_influx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2f8ae644216cde43d0a20bd7c8ef876d9febd297b89bf6b74e450ebf451e0b39
MD5 bf65bc7ed29ba82755c96cb59926ca10
BLAKE2b-256 7e0934e05ccdeb78b1ae73fbbba9e389c8d90ffd1c51839f1853f528b0b4ee5c

See more details on using hashes here.

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

Hashes for pytest_influx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7332213f0c02de6872a5b43789c0a8cd81f452f1d1de490bb3064b22a0b4cddc
MD5 5fb3b9e1ff2ebbc30aef1edde459e889
BLAKE2b-256 1937d01e6cc33c0cec3475154c2e4dc0842734ba1782eda230faabb9ddde57c5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page