def hacked_init(self):
 engine = create_engine('sqlite:///:memory:', echo=False)
 storage.Base.metadata.create_all(engine)
 Session = sessionmaker(bind=engine)
 self.session = Session()

def hacked_init ( self ) : engine = create_engine ( 'sqlite:///:memory:' , echo = False ) storage . Base . metadata . create_all ( engine ) Session = sessionmaker ( bind = engine ) self . session = Session ( )
hack for testing .