Debian Codegraph @

testsuite/tests/index/too-long-short-description/test.py

raw
1 """
2 Test that too long descriptions are rejected
3 """
4
5 from drivers.alr import run_alr
6 from drivers.asserts import assert_match
7
8
9 p = run_alr('show', 'hello_world',
10 complain_on_error=False, debug=False, quiet=True)
11 assert_match('.*Loading .*hello_world-0.1.0.toml:'
12 '.*description:.*Description string is too long'
13 ' \(must be no more than [0-9]+\)\n',
14 p.out)
15
16 print('SUCCESS')