forked from orbit-oss/flask
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:
parent
bfeee75696
commit
b2aae044ca
4 changed files with 32 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue