blob: 6cd856d66940bed970ecf8fc9b4a3e41537c906a [file] [log] [blame]
import pytest
import checkpackagelib.test_util as util
import checkpackagelib.lib_ignore as m
IgnoreMissingFile = [
('missing ignored file',
'.checkpackageignore',
'this-file-does-not-exist SomeTest',
[['.checkpackageignore:1: ignored file this-file-does-not-exist is missing',
'this-file-does-not-exist SomeTest']]),
]
@pytest.mark.parametrize('testname,filename,string,expected', IgnoreMissingFile)
def test_IgnoreMissingFile(testname, filename, string, expected):
warnings = util.check_file(m.IgnoreMissingFile, filename, string)
assert warnings == expected