Initial Commit
- initial default booting image
This commit is contained in:
18
utils/checkpackagelib/test_lib_ignore.py
Normal file
18
utils/checkpackagelib/test_lib_ignore.py
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user