(self, db_uri)
| 16 | |
| 17 | class Shorty: |
| 18 | def __init__(self, db_uri): |
| 19 | local.application = self |
| 20 | self.database_engine = create_engine(db_uri, convert_unicode=True) |
| 21 | |
| 22 | self.dispatch = SharedDataMiddleware(self.dispatch, {"/static": STATIC_PATH}) |
| 23 | |
| 24 | def init_database(self): |
| 25 | metadata.create_all(self.database_engine) |
nothing calls this directly
no test coverage detected