aboutsummaryrefslogtreecommitdiff
path: root/tests/conftest.py
blob: 9eb9e61199f33027d3d181e0a288c4b05f6cf07d (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# We need the mypy pytest plugin to do the test collection for our
# typing tests.

# mypy demands that its test-data be present for mypy.test.config to be
# imported, so thwart that check. mypy PR #10919 fixes this.
import unittest.mock
with unittest.mock.patch('os.path.isdir') as isdir:
    isdir.return_value = True
    import mypy.test.config  # noqa

pytest_plugins = [
    'mypy.test.data',
]