MCPcopy Create free account
hub / github.com/pallets/flask / test_with_categories

Function test_with_categories

tests/test_basic.py:625–633  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

623
624 @app.route("/test_with_categories/")
625 def test_with_categories():
626 messages = flask.get_flashed_messages(with_categories=True)
627 assert len(messages) == 3
628 assert list(messages) == [
629 ("message", "Hello World"),
630 ("error", "Hello World"),
631 ("warning", Markup("<em>Testing</em>")),
632 ]
633 return ""
634
635 @app.route("/test_filter/")
636 def test_filter():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected