Ensure the user monkey patching is done for the API tests

When running a subset of the tests, the get_user middleware monkey
patching in openstack_auth.utils did not always happen, causing some
of the tests to fail due to missing expected properties.

Fixes bug #1209177

Change-Id: Ic00b842e740954b0f36353381f511f7ba3eab70b
This commit is contained in:
Julie Pichon 2013-08-07 16:39:17 +01:00
parent e6bc949d8e
commit 515e469631
1 changed files with 1 additions and 0 deletions

View File

@ -245,6 +245,7 @@ class APITestCase(TestCase):
"""
def setUp(self):
super(APITestCase, self).setUp()
utils.patch_middleware_get_user()
def fake_keystoneclient(request, admin=False):
"""