github
56 of 107 new or added lines in 11 files covered. (52.34%)
1072 of 1387 relevant lines covered (77.29%)
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() |
× |