diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-20 17:43:42 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-20 17:43:42 +0100 |
commit | cc02eb8a5a0e40e23ae5e3cc2a4e92f0353d30b5 (patch) | |
tree | 6324ddde9cd15ed68033a712a0608e11c70f63fc /test | |
parent | 456378cb53dbf38ff0077b8f41894bbdc7c9671e (diff) | |
download | ale-cc02eb8a5a0e40e23ae5e3cc2a4e92f0353d30b5.zip |
#653 Show errors from other files for mypy
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_mypy_handler.vader | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/test/handler/test_mypy_handler.vader b/test/handler/test_mypy_handler.vader index c949b1aa..d0cf91e2 100644 --- a/test/handler/test_mypy_handler.vader +++ b/test/handler/test_mypy_handler.vader @@ -11,16 +11,39 @@ Execute(The mypy handler should parse lines correctly): AssertEqual \ [ \ { + \ 'lnum': 768, + \ 'col': 38, + \ 'filename': 'foo/bar/foo/bar/baz.py', + \ 'type': 'E', + \ 'text': 'Cannot determine type of ''SOME_SYMBOL''', + \ }, + \ { + \ 'lnum': 821, + \ 'col': 38, + \ 'filename': 'foo/bar/foo/bar/baz.py', + \ 'type': 'E', + \ 'text': 'Cannot determine type of ''SOME_SYMBOL''', + \ }, + \ { + \ 'lnum': 38, + \ 'col': 44, + \ 'filename': 'foo/bar/foo/bar/other.py', + \ 'type': 'E', + \ 'text': 'Cannot determine type of ''ANOTHER_SYMBOL''', + \ }, + \ { \ 'lnum': 15, \ 'col': 3, - \ 'text': 'Argument 1 to "somefunc" has incompatible type "int"; expected "str"', + \ 'filename': 'foo/bar/foo/bar/__init__.py', \ 'type': 'E', + \ 'text': 'Argument 1 to "somefunc" has incompatible type "int"; expected "str"' \ }, \ { \ 'lnum': 72, \ 'col': 1, - \ 'text': 'Some warning', + \ 'filename': 'foo/bar/foo/bar/__init__.py', \ 'type': 'W', + \ 'text': 'Some warning', \ }, \ ], \ ale_linters#python#mypy#Handle(bufnr(''), [ @@ -47,8 +70,9 @@ Execute(The mypy handler should handle Windows names with spaces): \ { \ 'lnum': 4, \ 'col': 0, - \ 'text': "No library stub file for module 'django.db'", + \ 'filename': 'C:\something\with spaces.py', \ 'type': 'E', + \ 'text': 'No library stub file for module ''django.db''', \ }, \ ], \ ale_linters#python#mypy#Handle(bufnr(''), [ |