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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest-mypy-plugins-0.2.0.tar.gz.
File metadata
- Download URL: pytest-mypy-plugins-0.2.0.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 |
a9887603d1894a76ba677d8cc7e1c60ec2b35600733b0504a088a0787abbe995
|
|
| MD5 |
68f30e00bcc9d7939a02c92b6180d549
|
|
| BLAKE2b-256 |
99ac8147494186d8dfc8257759bbd734050be3088cf997ca90f3247662ba1acc
|
File details
Details for the file pytest_mypy_plugins-0.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_mypy_plugins-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.4 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 |
296e7618090f198103803bf28eac9ed7f69b812f5364c5fd0ccc027ad35ff664
|
|
| MD5 |
a72bf3c3527ad5ff7fb45f4e46ae9150
|
|
| BLAKE2b-256 |
ec04dc412d5cbe15eb9b8e462c6ebbc22fa15d8317867426b4ce0a61c3231f0b
|