Go to file
Boris Bobrov b736936e51 Mock log only after app creation
The unit test that is getting fixed fails with error:

AttributeError: None does not have the attribute 'info'

It happens because _LOG.info is being patched at the moment when _LOG
is None. For a reason, this doesn't happen always. For example,
the problem was gone after a recheck in
https://review.openstack.org/#/c/391130/.

Patch log only after app creation. This seems to be a common pattern
across all other tests involving mock, for example, in
test_conf_middleware_log_and_default_as_messaging.

Change-Id: Ia48520d6835c5712d77e182cffbf50cc6b56b9ce
2016-11-01 16:33:39 +03:00
2014-06-19 15:45:29 -07:00
2015-06-07 10:37:27 -05:00
2014-06-19 15:45:29 -07:00
2014-06-19 15:45:29 -07:00
2014-06-19 17:30:35 -07:00
2016-10-06 23:40:27 +05:30
2015-09-21 18:55:55 +00:00
2016-07-05 10:52:34 +10:00

Middleware for the OpenStack Identity API (Keystone)

Latest Version

Downloads

This package contains middleware modules designed to provide authentication and authorization features to web services other than Keystone <https://github.com/openstack/keystone>. The most prominent module is keystonemiddleware.auth_token. This package does not expose any CLI or Python API features.

For information on contributing, see CONTRIBUTING.rst.

For any other information, refer to the parent project, Keystone:

https://github.com/openstack/keystone

Description
OpenStack Identity (Keystone) Middleware
Readme 14 MiB
Languages
Python 100%