typeddjango / pytest-mypy-plugins

pytest plugin for testing mypy types, stubs, and plugins
https://pypi.org/project/pytest-mypy-plugins/
MIT License
102 stars 24 forks source link

PYTHONPATH and MYPYPATH cannot be specified in `env:` directive #43

Closed sobolevn closed 4 years ago

sobolevn commented 4 years ago

Currently this code does not work:

-   case: mypy_path_from_env
    main: |
        from pair import Pair

        a: Pair
        reveal_type(a)  # N: Revealed type is 'pair.Pair'
    env:
        - MYPYPATH=./pytest_mypy_plugins/tests/fixtures

Because currently pytest-mypy-plugins does not respect this way of defining variables.

sobolevn commented 4 years ago

Closed by https://github.com/typeddjango/pytest-mypy-plugins/pull/44