@@ -32,7 +32,7 @@ import unittest
|
|||||||
# Ensure that if app engine is available, we use the correct django from it
|
# Ensure that if app engine is available, we use the correct django from it
|
||||||
try:
|
try:
|
||||||
from google.appengine.dist import use_library
|
from google.appengine.dist import use_library
|
||||||
use_library('django', '1.2')
|
use_library('django', '1.5')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -41,7 +41,8 @@ from oauth2client.client import Flow
|
|||||||
|
|
||||||
# Mock a Django environment
|
# Mock a Django environment
|
||||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'django_settings'
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'django_settings'
|
||||||
sys.modules['django_settings'] = imp.new_module('django_settings')
|
sys.modules['django_settings'] = django_settings = imp.new_module('django_settings')
|
||||||
|
django_settings.SECRET_KEY = 'xyzzy'
|
||||||
|
|
||||||
from oauth2client.django_orm import CredentialsField
|
from oauth2client.django_orm import CredentialsField
|
||||||
from oauth2client.django_orm import FlowField
|
from oauth2client.django_orm import FlowField
|
||||||
|
|||||||
Reference in New Issue
Block a user