Package repoze :: Package who :: Package tests :: Module test_config
[hide private]

Module test_config

source code

Classes [hide private]
  TestWhoConfig
  DummyPlugin
  TestConfigMiddleware
  DummyApp
Variables [hide private]
  PLUGINS_ONLY = '[plugin:foo]\nuse = repoze.who.tests.test_conf...
  GENERAL_ONLY = '[general]\nrequest_classifier = repoze.who.tes...
  GENERAL_WITH_PLUGINS = '[general]\nrequest_classifier = classi...
  IDENTIFIERS_ONLY = '[identifiers]\nplugins =\n repoze.who.t...
  IDENTIFIERS_WITH_PLUGINS = '[identifiers]\nplugins =\n foo;...
  AUTHENTICATORS_ONLY = '[authenticators]\nplugins =\n repoze...
  AUTHENTICATORS_WITH_PLUGINS = '[authenticators]\nplugins =\n ...
  CHALLENGERS_ONLY = '[challengers]\nplugins =\n repoze.who.t...
  CHALLENGERS_WITH_PLUGINS = '[challengers]\nplugins =\n foo;...
  MDPROVIDERS_ONLY = '[mdproviders]\nplugins =\n repoze.who.t...
  MDPROVIDERS_WITH_PLUGINS = '[mdproviders]\nplugins =\n foo;...
  MAKE_PLUGIN_ARG_NAMES = '[plugin:foo]\nuse = repoze.who.tests....
  SAMPLE_CONFIG = '[plugin:form]\nuse = repoze.who.plugins.form:...
  __package__ = 'repoze.who.tests'
Variables Details [hide private]

PLUGINS_ONLY

Value:
'''[plugin:foo]
use = repoze.who.tests.test_config:DummyPlugin

[plugin:bar]
use = repoze.who.tests.test_config:DummyPlugin
credentials = qux
'''

GENERAL_ONLY

Value:
'''[general]
request_classifier = repoze.who.tests.test_config:DummyPlugin
challenge_decider = repoze.who.tests.test_config:DummyPlugin
remote_user_key = ANOTHER_REMOTE_USER
'''

GENERAL_WITH_PLUGINS

Value:
'''[general]
request_classifier = classifier
challenge_decider = decider

[plugin:classifier]
use = repoze.who.tests.test_config:DummyPlugin

[plugin:decider]
...

IDENTIFIERS_ONLY

Value:
'''[identifiers]
plugins =
    repoze.who.tests.test_config:DummyPlugin;klass1
    repoze.who.tests.test_config:DummyPlugin
'''

IDENTIFIERS_WITH_PLUGINS

Value:
'''[identifiers]
plugins =
    foo;klass1
    bar

[plugin:foo]
use = repoze.who.tests.test_config:DummyPlugin

...

AUTHENTICATORS_ONLY

Value:
'''[authenticators]
plugins =
    repoze.who.tests.test_config:DummyPlugin;klass1
    repoze.who.tests.test_config:DummyPlugin
'''

AUTHENTICATORS_WITH_PLUGINS

Value:
'''[authenticators]
plugins =
    foo;klass1
    bar

[plugin:foo]
use = repoze.who.tests.test_config:DummyPlugin

...

CHALLENGERS_ONLY

Value:
'''[challengers]
plugins =
    repoze.who.tests.test_config:DummyPlugin;klass1
    repoze.who.tests.test_config:DummyPlugin
'''

CHALLENGERS_WITH_PLUGINS

Value:
'''[challengers]
plugins =
    foo;klass1
    bar

[plugin:foo]
use = repoze.who.tests.test_config:DummyPlugin

...

MDPROVIDERS_ONLY

Value:
'''[mdproviders]
plugins =
    repoze.who.tests.test_config:DummyPlugin;klass1
    repoze.who.tests.test_config:DummyPlugin
'''

MDPROVIDERS_WITH_PLUGINS

Value:
'''[mdproviders]
plugins =
    foo;klass1
    bar

[plugin:foo]
use = repoze.who.tests.test_config:DummyPlugin

...

MAKE_PLUGIN_ARG_NAMES

Value:
'''[plugin:foo]
use = repoze.who.tests.test_config:DummyPlugin
name = name
iface = iface
'''

SAMPLE_CONFIG

Value:
'''[plugin:form]
use = repoze.who.plugins.form:make_plugin
login_form_qs = __do_login
rememberer_name = auth_tkt

[plugin:auth_tkt]
use = repoze.who.plugins.auth_tkt:make_plugin
secret = s33kr1t
...