diff options
author | Radomir Dopieralski <openstack@sheep.art.pl> | 2016-11-25 12:57:13 +0100 |
---|---|---|
committer | Radomir Dopieralski <openstack@sheep.art.pl> | 2016-11-25 13:06:14 +0100 |
commit | f5685ebe468626a983954132c3e5754e9954563b (patch) | |
tree | 1f471614559e5ffd8838bb302579e6c891f14262 /openstack_dashboard/dashboards | |
parent | 11f6e3de485b435ed82ec52712509286188e2f7e (diff) | |
download | horizon-f5685ebe468626a983954132c3e5754e9954563b.tar.gz |
Specify POLICY_CHECK_FUNCTION as a string
We don't want code in our settings.py and local_settings.py, and in
particular we don't want to have to import Python objects from all over
to set them as setting values -- instead, we can specify those as import
path strings. This also solves problems with importing order and loops.
This change is backwards-compatible, in the sense that you can still
import the objects directly and set them as the setting values.
Partially-Implements: blueprint ini-based-configuration
Change-Id: I8a346e55bb98e4e22e0c14a614c45d493d20feb4
Diffstat (limited to 'openstack_dashboard/dashboards')
-rw-r--r-- | openstack_dashboard/dashboards/identity/projects/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openstack_dashboard/dashboards/identity/projects/tests.py b/openstack_dashboard/dashboards/identity/projects/tests.py index 325d7353e..f47ca3476 100644 --- a/openstack_dashboard/dashboards/identity/projects/tests.py +++ b/openstack_dashboard/dashboards/identity/projects/tests.py @@ -27,7 +27,6 @@ from mox3.mox import IgnoreArg # noqa from mox3.mox import IsA # noqa from horizon.workflows import views -from openstack_auth import policy as policy_backend from openstack_dashboard import api from openstack_dashboard.dashboards.identity.projects import workflows @@ -100,7 +99,7 @@ class TenantsViewTests(test.BaseAdminViewTests): class ProjectsViewNonAdminTests(test.TestCase): - @override_settings(POLICY_CHECK_FUNCTION=policy_backend.check) + @override_settings(POLICY_CHECK_FUNCTION='openstack_auth.policy.check') @test.create_stubs({api.keystone: ('tenant_list', 'domain_lookup')}) def test_index(self): |