pytest plugin for writing tests for mypy plugins
Project description
PyTest plugin for testing mypy custom plugins
Example of a test case:
[case my_test_case]
class MyClass:
def method(self) -> str:
pass
reveal_type(MyClass().method()) # E: Revealed type is 'builtins.str'
Options:
mypy-tests:
--mypy-testing-base=MYPY_TESTING_BASE
Base directory for tests to use
--mypy-ini-file=MYPY_INI_FILE
Which .ini file to use as a default config for tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest-mypy-plugins-0.1.1.tar.gz
.
File metadata
- Download URL: pytest-mypy-plugins-0.1.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ce1ecf05b60adef682cb35b05c6f41fabe33701a531014a6b1a689e889bfedf |
|
MD5 | 242eb53b2a5af1a11d50daf79d6b2051 |
|
BLAKE2b-256 | 92535fe0262bfd836f06222d09ae39d935e73d200d2b79dff28b58c3ec54c22a |
File details
Details for the file pytest_mypy_plugins-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_mypy_plugins-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 849ef1a2632be0e6bb5ddc8bda9b98cf44d5b662b3b877921033f5b612b231d4 |
|
MD5 | 7617fceb4a6a3aa2b695c6e2af768a6b |
|
BLAKE2b-256 | 83eff340fe97cd7f693b75220f2d2719ae58775ddf2b32d51ace1f150df838a8 |