Add Fix django.contrib.auth.middleware monkey patching for APITestCase
This patch rollbacks changes in APITestCase introduced in the0d16361326
commit to unblock Horizon plugins gates. Change-Id: I6b2be31568e4aa4273990f9cfa76ca139620c84b Closes-bug: #1806053 Closes-bug: #1805240 (cherry picked from commitde69edd040
)
This commit is contained in:
parent
2e91dc4148
commit
85fef71c0d
|
@ -496,6 +496,7 @@ class APITestCase(TestCase):
|
|||
LOG.warning("APITestCase has been deprecated in favor of mock usage "
|
||||
"and will be removed at the beginning of 'Stein' release. "
|
||||
"Please convert your to use APIMockTestCase instead.")
|
||||
utils.patch_middleware_get_user()
|
||||
|
||||
def fake_keystoneclient(request, admin=False):
|
||||
"""Returns the stub keystoneclient.
|
||||
|
|
Loading…
Reference in New Issue