diff tests/test-ui-config @ 3346:1700a103458e

move the parsing of --config options to commands.py
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 10 Oct 2006 18:43:20 -0300
parents 24c1db20990c
children 3fef134832d8
line wrap: on
line diff
--- a/tests/test-ui-config	Tue Oct 10 18:43:20 2006 -0300
+++ b/tests/test-ui-config	Tue Oct 10 18:43:20 2006 -0300
@@ -1,9 +1,9 @@
 #!/usr/bin/env python
 
-from mercurial import ui, util
+from mercurial import ui, util, commands
 
 testui = ui.ui()
-testui.updateopts(config=[
+parsed = commands.parseconfig([
     'values.string=string value',
     'values.bool1=true',
     'values.bool2=false',
@@ -17,6 +17,7 @@
     'interpolation.value4=%(bad)1',
     'interpolation.value5=%bad2',
 ])
+testui.updateopts(config=parsed)
 
 print repr(testui.configitems('values'))
 print repr(testui.configitems('lists'))