diff options
author | Michael J. Sullivan <sully@msully.net> | 2021-08-03 13:58:42 -0700 |
---|---|---|
committer | Elvis Pranskevichus <elvis@magic.io> | 2021-08-03 17:54:57 -0700 |
commit | 4a175499500d176c811eeb3aba29c9449f9e40b3 (patch) | |
tree | d74c8b6168f72f2d70bca42048d082a4ec890136 /tests/conftest.py | |
parent | 39f9f0de168b0149456a1aca09ef3f442f436bbf (diff) | |
download | immutables-4a175499500d176c811eeb3aba29c9449f9e40b3.tar.gz immutables-4a175499500d176c811eeb3aba29c9449f9e40b3.zip |
Add in mypy tests
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..9eb9e61 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,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', +] |