Fix unit tests

This commit is contained in:
Marius Gedminas 2018-11-22 12:09:45 +02:00
parent 9481f307fb
commit a0baeec591
1 changed files with 14 additions and 0 deletions

View File

@ -21,6 +21,7 @@ Execute(The flake8 handler should handle basic warnings and syntax errors):
\ { \ {
\ 'lnum': 6, \ 'lnum': 6,
\ 'col': 6, \ 'col': 6,
\ 'vcol': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'text': 'indentation is not a multiple of four', \ 'text': 'indentation is not a multiple of four',
\ 'code': 'E111', \ 'code': 'E111',
@ -29,6 +30,7 @@ Execute(The flake8 handler should handle basic warnings and syntax errors):
\ { \ {
\ 'lnum': 7, \ 'lnum': 7,
\ 'col': 6, \ 'col': 6,
\ 'vcol': 1,
\ 'type': 'W', \ 'type': 'W',
\ 'text': 'some warning', \ 'text': 'some warning',
\ 'code': 'W123', \ 'code': 'W123',
@ -37,6 +39,7 @@ Execute(The flake8 handler should handle basic warnings and syntax errors):
\ { \ {
\ 'lnum': 8, \ 'lnum': 8,
\ 'col': 3, \ 'col': 3,
\ 'vcol': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'text': 'SyntaxError: invalid syntax', \ 'text': 'SyntaxError: invalid syntax',
\ 'code': 'E999', \ 'code': 'E999',
@ -54,6 +57,7 @@ Execute(The flake8 handler should set end column indexes for certain errors):
\ { \ {
\ 'lnum': 25, \ 'lnum': 25,
\ 'col': 1, \ 'col': 1,
\ 'vcol': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'end_col': 3, \ 'end_col': 3,
\ 'text': 'undefined name ''foo''', \ 'text': 'undefined name ''foo''',
@ -62,6 +66,7 @@ Execute(The flake8 handler should set end column indexes for certain errors):
\ { \ {
\ 'lnum': 28, \ 'lnum': 28,
\ 'col': 5, \ 'col': 5,
\ 'vcol': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'end_col': 9, \ 'end_col': 9,
\ 'text': 'hello may be undefined, or defined from star imports: x', \ 'text': 'hello may be undefined, or defined from star imports: x',
@ -70,6 +75,7 @@ Execute(The flake8 handler should set end column indexes for certain errors):
\ { \ {
\ 'lnum': 104, \ 'lnum': 104,
\ 'col': 5, \ 'col': 5,
\ 'vcol': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'end_col': 12, \ 'end_col': 12,
\ 'text': '''continue'' not properly in loop', \ 'text': '''continue'' not properly in loop',
@ -78,6 +84,7 @@ Execute(The flake8 handler should set end column indexes for certain errors):
\ { \ {
\ 'lnum': 106, \ 'lnum': 106,
\ 'col': 5, \ 'col': 5,
\ 'vcol': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'end_col': 9, \ 'end_col': 9,
\ 'text': '''break'' outside loop', \ 'text': '''break'' outside loop',
@ -86,6 +93,7 @@ Execute(The flake8 handler should set end column indexes for certain errors):
\ { \ {
\ 'lnum': 109, \ 'lnum': 109,
\ 'col': 5, \ 'col': 5,
\ 'vcol': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'end_col': 8, \ 'end_col': 8,
\ 'text': 'local variable ''test'' is assigned to but never used', \ 'text': 'local variable ''test'' is assigned to but never used',
@ -143,6 +151,7 @@ Execute(The flake8 handler should handle names with spaces):
\ { \ {
\ 'lnum': 6, \ 'lnum': 6,
\ 'col': 6, \ 'col': 6,
\ 'vcol': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'text': 'indentation is not a multiple of four', \ 'text': 'indentation is not a multiple of four',
\ 'code': 'E111', \ 'code': 'E111',
@ -159,6 +168,7 @@ Execute(Warnings about trailing whitespace should be reported by default):
\ { \ {
\ 'lnum': 6, \ 'lnum': 6,
\ 'col': 1, \ 'col': 1,
\ 'vcol': 1,
\ 'code': 'W291', \ 'code': 'W291',
\ 'type': 'W', \ 'type': 'W',
\ 'sub_type': 'style', \ 'sub_type': 'style',
@ -167,6 +177,7 @@ Execute(Warnings about trailing whitespace should be reported by default):
\ { \ {
\ 'lnum': 6, \ 'lnum': 6,
\ 'col': 1, \ 'col': 1,
\ 'vcol': 1,
\ 'code': 'W293', \ 'code': 'W293',
\ 'type': 'W', \ 'type': 'W',
\ 'sub_type': 'style', \ 'sub_type': 'style',
@ -195,6 +206,7 @@ Execute(Warnings about trailing blank lines should be reported by default):
\ { \ {
\ 'lnum': 6, \ 'lnum': 6,
\ 'col': 1, \ 'col': 1,
\ 'vcol': 1,
\ 'code': 'W391', \ 'code': 'W391',
\ 'type': 'W', \ 'type': 'W',
\ 'sub_type': 'style', \ 'sub_type': 'style',
@ -221,6 +233,7 @@ Execute(F401 should be a warning):
\ { \ {
\ 'lnum': 6, \ 'lnum': 6,
\ 'col': 1, \ 'col': 1,
\ 'vcol': 1,
\ 'code': 'F401', \ 'code': 'F401',
\ 'type': 'W', \ 'type': 'W',
\ 'text': 'module imported but unused', \ 'text': 'module imported but unused',
@ -236,6 +249,7 @@ Execute(E112 should be a syntax error):
\ { \ {
\ 'lnum': 6, \ 'lnum': 6,
\ 'col': 1, \ 'col': 1,
\ 'vcol': 1,
\ 'code': 'E112', \ 'code': 'E112',
\ 'type': 'E', \ 'type': 'E',
\ 'text': 'expected an indented block', \ 'text': 'expected an indented block',