File: conftest.py

package info (click to toggle)
zigpy-znp 0.13.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,120 kB
  • sloc: python: 14,459; makefile: 6
file content (8 lines) | stat: -rw-r--r-- 218 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
import pytest


@pytest.fixture(autouse=True)
def patch_logging(mocker):
    # To prevent global state from being modified in tool tests
    mocker.patch("logging.addLevelName")
    mocker.patch("coloredlogs.install")