mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-10 12:27:46 +00:00
Uncouple flask from App and Api. Created Abstract classes for theses modules. Fixed the tests
This commit is contained in:
@@ -48,8 +48,8 @@ def delete_pet(pet_id):
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
db_session = orm.init_db('sqlite:///:memory:')
|
||||
app = connexion.App(__name__)
|
||||
app.add_api('swagger.yaml')
|
||||
app = connexion.FlaskApp(__name__)
|
||||
app.add_api('swagger.yaml', connexion.apis.FlaskApi)
|
||||
|
||||
application = app.app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user