Fix the tests to use blueprints.

This commit is contained in:
yackob03 2014-01-30 19:06:26 -05:00
parent fff5da6354
commit 7412fae9dc
3 changed files with 208 additions and 185 deletions

View file

@ -1,13 +1,14 @@
import unittest
import json
import endpoints.api
from endpoints.api import api
from app import app
from initdb import wipe_database, initialize_database, populate_database
from specs import build_specs
app.register_blueprint(api, url_prefix='/api')
NO_ACCESS_USER = 'freshuser'
READ_ACCESS_USER = 'reader'
ADMIN_ACCESS_USER = 'devtable'