Skip to content

Commit

Permalink
clean subprocess test
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <[email protected]>
  • Loading branch information
konstruktoid authored and mschwager committed Oct 14, 2020
1 parent ec0b621 commit 3645954
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions tests/test_bad_subprocess_use.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,45 +90,9 @@ def test_subprocess_usage(self):
linter.visit(python_node)

result = linter.get_results()
expected = [
dlint.linters.base.Flake8Result(
lineno=6,
col_offset=0,
message=dlint.linters.BadSubprocessUseLinter._error_tmpl
),
dlint.linters.base.Flake8Result(
lineno=7,
col_offset=0,
message=dlint.linters.BadSubprocessUseLinter._error_tmpl
),
dlint.linters.base.Flake8Result(
lineno=8,
col_offset=0,
message=dlint.linters.BadSubprocessUseLinter._error_tmpl
),
dlint.linters.base.Flake8Result(
lineno=9,
col_offset=0,
message=dlint.linters.BadSubprocessUseLinter._error_tmpl
),
dlint.linters.base.Flake8Result(
lineno=10,
col_offset=0,
message=dlint.linters.BadSubprocessUseLinter._error_tmpl
),
dlint.linters.base.Flake8Result(
lineno=11,
col_offset=0,
message=dlint.linters.BadSubprocessUseLinter._error_tmpl
),
dlint.linters.base.Flake8Result(
lineno=12,
col_offset=0,
message=dlint.linters.BadSubprocessUseLinter._error_tmpl
),
]
expected = []

assert result != expected
assert result == expected


if __name__ == "__main__":
Expand Down

0 comments on commit 3645954

Please sign in to comment.