File: conftest.py

package info (click to toggle)
zigpy-znp 0.14.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,112 kB
  • sloc: python: 14,241; 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")