Allow auth plugins to be setup more than once

I originally thought this was a good idea and long term I think it is.
The problem is that some tests need to use this fixture in the test
method itself and that will run after `load_backends()`, which also
tries to setup auth plugins.

This should come back after the tests are in good enough shapre to
support it.

Change-Id: I1175fa95d128940eb1a0feebdfe5d6e16285ad0a
This commit is contained in:
David Stanek 2016-06-24 01:34:01 +00:00
parent dc81d2885a
commit 5dfa16a5cf
1 changed files with 0 additions and 2 deletions

View File

@ -47,8 +47,6 @@ class LoadAuthPlugins(fixtures.Fixture):
def setUp(self):
super(LoadAuthPlugins, self).setUp()
if auth.controllers.AUTH_PLUGINS_LOADED:
raise Exception('auth_plugins already loaded')
AUTH_METHODS = auth.controllers.AUTH_METHODS
for method_name in self.method_names: