Flash messages signals

If we send a signal when a template is rendered why not when a message
is flashed? One real world use case is in tests, this signal should make
flash messages expectation easier to implement.
This commit is contained in:
Paulo Poiati 2013-02-27 23:46:17 -03:00
parent bfeee75696
commit b2aae044ca
4 changed files with 32 additions and 1 deletions

View file

@ -34,7 +34,7 @@ from .templating import render_template, render_template_string
# the signals
from .signals import signals_available, template_rendered, request_started, \
request_finished, got_request_exception, request_tearing_down, \
appcontext_tearing_down
appcontext_tearing_down, message_flashed
# We're not exposing the actual json module but a convenient wrapper around
# it.