Fix appr tests to use the shared test fixtures
This commit is contained in:
parent
cc09e8738e
commit
d895b4d5ff
6 changed files with 20 additions and 86 deletions
|
@ -13,6 +13,7 @@ from data import model
|
|||
from data.database import close_db_filter, db, configure
|
||||
from data.model.user import LoginWrappedDBUser
|
||||
from endpoints.api import api_bp
|
||||
from endpoints.appr import appr_bp
|
||||
from endpoints.web import web
|
||||
|
||||
from initdb import initialize_database, populate_database
|
||||
|
@ -158,7 +159,10 @@ def app(appconfig, initialized_db):
|
|||
app.url_map.converters['regex'] = RegexConverter
|
||||
app.url_map.converters['apirepopath'] = APIRepositoryPathConverter
|
||||
app.url_map.converters['repopath'] = RepositoryPathConverter
|
||||
|
||||
app.register_blueprint(api_bp, url_prefix='/api')
|
||||
app.register_blueprint(appr_bp, url_prefix='/cnr')
|
||||
app.register_blueprint(web, url_prefix='/')
|
||||
|
||||
app.config.update(appconfig)
|
||||
return app
|
||||
|
|
Reference in a new issue