Tuve este error al ejecutar el test hello_post :
AssertionError: Popped wrong request context. (<RequestContext
’http://localhost/hello’ [GET] of app> instead of <RequestContext ‘http://localhost/’ [GET] of app>)
Al parecer recibe dos diferentes contextos. La solución recomendada aquí funcionó para mí también.
Agregar en la funcion create_app de la clase Test.
app.config['PRESERVE_CONTEXT_ON_EXCEPTION'] = True
¿Quieres ver más aportes, preguntas y respuestas de la comunidad? Crea una cuenta o inicia sesión.