Switch to teardown_appcontext for docs in sqlalchemy pattern