diff tests/test-bugzilla.t @ 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 22c53b3a390d
children 4441705b7111
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):