github
59 of 114 new or added lines in 11 files covered. (51.75%)
1075 of 1392 relevant lines covered (77.23%)
0.77 hits per line
NEW
|
from flask import Flask |
× |
NEW
|
from trailblazer.store.database import initialize_database |
× |
NEW
|
from trailblazer.store.store import Store |
× |
4 |
|
|
5 |
|
|
NEW
|
class FlaskStore(Store): |
× |
NEW
|
def __init__(self, app=None): |
× |
NEW
|
if app:
|
× |
NEW
|
self.init_app(app)
|
× |
10 |
|
|
NEW
|
def init_app(self, app: Flask): |
× |
NEW
|
uri = app.config["SQLALCHEMY_DATABASE_URI"]
|
× |
NEW
|
initialize_database(uri) |
× |
NEW
|
super(FlaskStore, self).__init__() |
× |
15 |
|
|
16 |
|
|
NEW
|
store = FlaskStore() |
× |