Changed configuration values to use the prefix "SECURITY_" instead of a nested dictionary for easier overidding

This commit is contained in:
Matt Wright
2012-03-08 23:02:39 -05:00
parent cd877adebe
commit 1a6cd10d09
3 changed files with 50 additions and 45 deletions
+7 -7
View File
@@ -104,13 +104,13 @@ class DefaultSecurityTests(SecurityTest):
class ConfiguredSecurityTests(SecurityTest):
AUTH_CONFIG = {
'password_hash': 'bcrypt',
'user_datastore_name': 'custom_datastore_name',
'auth_url': '/custom_auth',
'logout_url': '/custom_logout',
'login_view': '/custom_login',
'post_login_view': '/post_login',
'post_logout_view': '/post_logout'
'SECURITY_PASSWORD_HASH': 'bcrypt',
'SECURITY_USER_DATASTORE': 'custom_datastore_name',
'SECURITY_AUTH_URL': '/custom_auth',
'SECURITY_LOGOUT_URL': '/custom_logout',
'SECURITY_LOGIN_VIEW': '/custom_login',
'SECURITY_POST_LOGIN': '/post_login',
'SECURITY_POST_LOGOUT': '/post_logout'
}
def test_login_view(self):