Permalink
Browse files

Move config class

  • Loading branch information...
mattupstate committed Apr 4, 2013
1 parent ea9dabd commit 1e3e17b1350f87a727255a967446bfb8f2453ffc
Showing with 25 additions and 2 deletions.
  1. +25 −2 tests/test_app/__init__.py
View
@@ -4,6 +4,31 @@
from flask.ext.security import login_required
from werkzeug import url_decode
+class Config(object):
+
+ SOCIAL_TWITTER = {
+ 'consumer_key': 'xxxx',
+ 'consumer_secret': 'xxxx'
+ }
+
+ SOCIAL_FACEBOOK = {
+ 'consumer_key': 'xxxx',
+ 'consumer_secret': 'xxxx',
+ 'request_token_params': {
+ 'scope': 'email,publish_stream'
+ }
+ }
+
+ SOCIAL_FOURSQUARE = {
+ 'consumer_key': 'xxxx',
+ 'consumer_secret': 'xxxx'
+ }
+
+ SOCIAL_GOOGLE = {
+ 'consumer_key': 'xxxx',
+ 'consumer_secret': 'xxxx'
+ }
+
class HTTPMethodOverrideMiddleware(object):
"""The HTTPMethodOverrideMiddleware middleware implements the hidden HTTP
@@ -44,8 +69,6 @@ def create_app(config, debug=True):
app.debug = debug
app.config['SECRET_KEY'] = 'secret'
app.config['SECURITY_POST_LOGIN_VIEW'] = '/profile'
-
- from tests.test_app.config import Config
app.config.from_object(Config)
if config:

0 comments on commit 1e3e17b

Please sign in to comment.