changeset 33432:fbfecd1dbfb5

configitems: register the 'bugzilla.mocklog' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 07 Jul 2017 10:04:03 +0200
parents fd6eb444f2e1
children f793e535b4b9
files tests/test-bugzilla.t
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bugzilla.t	Thu Jul 13 22:57:11 2017 -0400
+++ b/tests/test-bugzilla.t	Fri Jul 07 10:04:03 2017 +0200
@@ -3,7 +3,14 @@
   $ cat <<EOF > bzmock.py
   > from __future__ import absolute_import
   > from mercurial import extensions
+  > from mercurial import registrar
   > 
+  > configtable = {}
+  > configitem = registrar.configitem(configtable)
+  > 
+  > configitem('bugzilla', 'mocklog',
+  >     default=None,
+  > )
   > def extsetup(ui):
   >     bugzilla = extensions.find('bugzilla')
   >     class bzmock(bugzilla.bzaccess):