From 09bd758fb88387cf9e58666b1bbcded4e019037e Mon Sep 17 00:00:00 2001 From: termie Date: Wed, 1 Feb 2012 14:50:02 -0800 Subject: deal with reparsing the config files --- tests/test_cli.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_cli.py b/tests/test_cli.py index 82fde86d..e66d6f63 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -15,8 +15,15 @@ KEYSTONECLIENT_REPO = 'git://github.com/openstack/python-keystoneclient.git' class CliMasterTestCase(test_keystoneclient.KcMasterTestCase): def setUp(self): super(CliMasterTestCase, self).setUp() + # NOTE(termie): we need to reset and reparse the config here because + # cli adds new command-line config options + # NOTE(termie): we are importing cli here because it imports + # keystoneclient, which we are loading from different + # sources between tests + CONF.reset() from keystone import cli self.cli = cli + self.config() def get_client(self, user_ref=None, tenant_ref=None): if user_ref is None: -- cgit