scoped session 搭配flask - jenhaoyang/backend_blog GitHub Wiki 參考: https://piotr.banaszkiewicz.org/blog/2014/02/22/how-to-bite-flask-sqlalchemy-and-pytest-all-at-once/