configitems: register the test 'logtoprocess.foo' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 13 Oct 2017 23:46:37 +0200
changeset 34764 af43cb56af4e
parent 34763 7c52a65010b1
child 34765 f3e4a5ad0d90
configitems: register the test 'logtoprocess.foo' config
tests/test-logtoprocess.t
--- a/tests/test-logtoprocess.t	Fri Oct 13 23:10:49 2017 +0200
+++ b/tests/test-logtoprocess.t	Fri Oct 13 23:46:37 2017 +0200
@@ -12,6 +12,11 @@
   > from mercurial import registrar
   > cmdtable = {}
   > command = registrar.command(cmdtable)
+  > configtable = {}
+  > configitem = registrar.configitem(configtable)
+  > configitem('logtoprocess', 'foo',
+  >     default=None,
+  > )
   > @command(b'foo', [])
   > def foo(ui, repo):
   >     ui.log('foo', 'a message: %(bar)s\n', bar='spam')