diff --git a/scripts/dev/check_coverage.py b/scripts/dev/check_coverage.py index e2fb79f43..e0b78a5c7 100644 --- a/scripts/dev/check_coverage.py +++ b/scripts/dev/check_coverage.py @@ -133,6 +133,12 @@ PERFECT_FILES = [ ] +# 100% coverage because of integration tests, but no perfect unit tests yet. +WHITELISTED_FILES = [ + 'qutebrowser/mainwindow/statusbar/prompt.py' +] + + class Skipped(Exception): """Exception raised when skipping coverage checks.""" @@ -199,7 +205,8 @@ def check(fileobj, perfect_files): text = "{} has {}% line and {}% branch coverage!".format( filename, line_cov, branch_cov) messages.append(Message(MsgType.insufficent_coverage, text)) - elif filename not in perfect_src_files and not is_bad: + elif (filename not in perfect_src_files and not is_bad and + filename not in WHITELISTED_FILES): text = ("{} has 100% coverage but is not in " "perfect_files!".format(filename)) messages.append(Message(MsgType.perfect_file, text))