comparison tests/test-help @ 10141:827b7d6f9016

test-help: improve test coverage Adds a test for commands without help text. Extends test coverage of commands.help_ by 1 line.
author Henri Wiechers <hwiechers@gmail.com>
date Thu, 24 Dec 2009 18:53:35 +0200
parents 5d868e0565f6
children 44fa0e205ec9
comparison
equal deleted inserted replaced
10140:5d868e0565f6 10141:827b7d6f9016
25 hg help status 25 hg help status
26 hg -q help status 26 hg -q help status
27 hg help foo 27 hg help foo
28 hg skjdfks 28 hg skjdfks
29 29
30 cat > helpext.py <<EOF
31 import os
32 from mercurial import commands
33
34 def nohelp(ui, *args, **kwargs):
35 pass
36
37 cmdtable = {
38 "nohelp": (nohelp, [], "hg nohelp"),
39 }
40
41 commands.norepo += ' nohelp'
42 EOF
43 abspath=`pwd`/helpext.py
44
45 echo '[extensions]' >> $HGRCPATH
46 echo "helpext = $abspath" >> $HGRCPATH
47
48 echo %% test command with no help text
49 hg help nohelp
50
30 exit 0 51 exit 0