summaryrefslogtreecommitdiff
path: root/tests/conftest.py
blob: a0c21a84a4b8e46bb900c26d6dea833e22291e23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt

"""
Pytest auto configuration.

This module is run automatically by pytest, to define and enable fixtures.
"""

import pytest
import warnings


@pytest.fixture(autouse=True)
def set_warnings():
    """Enable DeprecationWarnings during all tests."""
    warnings.simplefilter("default")
    warnings.simplefilter("once", DeprecationWarning)