mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-11-23 01:40:40 +00:00
23 lines
370 B
Python
23 lines
370 B
Python
"""Pytest conftest fixtures."""
|
|
import os
|
|
import sys
|
|
|
|
import pytest
|
|
|
|
from prometheuspvesd.utils import Singleton
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def reset_singletons():
|
|
Singleton._instances = {}
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def reset_os_environment():
|
|
os.environ = {}
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def reset_sys_argv():
|
|
sys.argv = ["prometheus-pve-sd"]
|