Bug 1387555 - [mozlint] Make use of quickfix when using --edit with vim/nvim, r=dylan

MozReview-Commit-ID: BlJbWVv1CeO
This commit is contained in:
Andrew Halberstadt
2017-08-09 10:03:02 -04:00
parent 7bbf1b87c4
commit c6c7ed20a2
5 changed files with 87 additions and 7 deletions

View File

@@ -47,8 +47,8 @@ def test_cli_run_with_edit(run, parser, capfd):
assert ret == 1
assert len(out) == 5
assert out[0].endswith('foobar.js') # from the `echo` editor
assert "files/foobar.js: line 1, col 1, Error" in out[1]
assert "files/foobar.js: line 2, col 1, Error" in out[2]
assert "foobar.js: line 1, col 1, Error" in out[1]
assert "foobar.js: line 2, col 1, Error" in out[2]
del os.environ['EDITOR']
with pytest.raises(SystemExit):