vdirsyncer/tests/conftest.py
Markus Unterwaditzer 4f7589ca7f Fix logging
2015-08-18 21:25:19 +02:00

24 lines
407 B
Python

# -*- coding: utf-8 -*-
'''
General-purpose fixtures for vdirsyncer's testsuite.
'''
import logging
import click_log
import pytest
@pytest.fixture(autouse=True)
def setup_logging():
click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG)
try:
import pytest_benchmark
except ImportError:
@pytest.fixture
def benchmark():
return lambda x: x()
else:
del pytest_benchmark