mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 14:24:17 +00:00
instrument coverage on tests and require 100% coverage there
This commit is contained in:
parent
d097d5103d
commit
93a17a806d
9 changed files with 16 additions and 16 deletions
|
|
@ -13,8 +13,7 @@ def test_read_lines_splits_lines(default_options):
|
|||
file_processor = processor.FileProcessor(__file__, default_options)
|
||||
lines = file_processor.lines
|
||||
assert len(lines) > 5
|
||||
assert any('"""Tests for the FileProcessor class."""' in line.rstrip()
|
||||
for line in lines)
|
||||
assert lines[0].strip() == '"""Tests for the FileProcessor class."""'
|
||||
|
||||
|
||||
def _lines_from_file(tmpdir, contents, options):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue