From ca3a073922ef86128337314cacf14d235acbaa31 Mon Sep 17 00:00:00 2001 From: David Stanek Date: Mon, 30 Sep 2013 15:10:30 +0000 Subject: [PATCH] Imports oslo policy to fix test issues Tests inheriting from keystone.tests.TestCase depend on having the policy_file command-line option declared before setUp runs. Importing the oslo policy module automatically declares the option. Fixes-Bug: 1233224 Change-Id: I939bbdcb7df1c4a59108dced92d4d5c2e96defe2 --- keystone/tests/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/keystone/tests/core.py b/keystone/tests/core.py index 5c051a48a6..8cbbcb3e9d 100644 --- a/keystone/tests/core.py +++ b/keystone/tests/core.py @@ -67,6 +67,11 @@ from keystone.token import provider as token_provider from keystone import trust +# NOTE(dstanek): Tests inheriting from TestCase depend on having the +# policy_file command-line option declared before setUp runs. Importing the +# oslo policy module automatically declares the option. +from keystone.openstack.common import policy as common_policy # noqa + LOG = logging.getLogger(__name__) ROOTDIR = os.path.dirname(os.path.abspath('..'))