added test cases for forbidden controlchars in tags

This commit is contained in:
Frank Schreiner 2019-10-23 16:07:59 +02:00 committed by Neal Gompa (ニール・ゴンパ)
parent 5ee489ece4
commit e1576e4fc1
3 changed files with 16 additions and 0 deletions

View File

@ -67,3 +67,19 @@ def test_valid_license_exception(tmpdir, package, tagscheck):
test.check(get_tested_package(package, tmpdir))
out = output.print_results(output.results)
assert 'W: invalid-license-exception' not in out
@pytest.mark.parametrize('package', ['binary/xtables-addons-kmp-default'])
def test_forbidden_controlchar_found_requires(tmpdir, package, tagscheck):
output, test = tagscheck
test.check(get_tested_package(package, tmpdir))
out = output.print_results(output.results)
assert 'E: forbidden-controlchar-found' in out
@pytest.mark.parametrize('package', ['binary/ruby2.6-rubygem-fast_gettext'])
def test_forbidden_controlchar_found_changelog(tmpdir, package, tagscheck):
output, test = tagscheck
test.check(get_tested_package(package, tmpdir))
out = output.print_results(output.results)
assert 'E: forbidden-controlchar-found' in out