Fix test multiple import issue

This commit is contained in:
Joseph Schorr 2014-04-15 18:51:12 -04:00
parent da30cd86d5
commit 2ae48f7c15

View file

@ -36,9 +36,11 @@ from endpoints.api.repository import RepositoryList, RepositoryVisibility, Repos
from endpoints.api.permission import (RepositoryUserPermission, RepositoryTeamPermission,
RepositoryTeamPermissionList, RepositoryUserPermissionList)
app.register_blueprint(api_bp, url_prefix='/api')
try:
app.register_blueprint(api_bp, url_prefix='/api')
except ValueError:
# This blueprint was already registered
pass
CSRF_TOKEN_KEY = '_csrf_token'
CSRF_TOKEN = '123csrfforme'