1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

samba-tool: Add test to make sure all commands have a short description set.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Oct 14 01:53:45 CEST 2011 on sn-devel-104
This commit is contained in:
Jelmer Vernooij
2011-10-13 23:49:05 +02:00
parent 37a4bcd28b
commit 1b27efd910

View File

@ -81,3 +81,14 @@ class CommandTests(NetCmdTestCase):
if missing:
self.fail("The following commands do not have a synopsis set: %r" %
missing)
def test_short_description_everywhere(self):
missing = []
for path, cmd in self.iter_all_subcommands():
if cmd.short_description is None:
missing.append(path)
if not missing:
return
self.fail(
"The following commands do not have a short description set: %r" %
missing)