Skip to content

Commit

Permalink
Imports oslo policy to fix test issues
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dstanek committed Sep 30, 2013
1 parent fd7d619 commit ca3a073
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions keystone/tests/core.py
Expand Up @@ -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('..'))
Expand Down

0 comments on commit ca3a073

Please sign in to comment.