MCPcopy Create free account
hub / github.com/pallets/quart / test_flash_category

Function test_flash_category

tests/test_helpers.py:82–93  ·  view source on GitHub ↗
(app: Quart)

Source from the content-addressed store, hash-verified

80
81
82async def test_flash_category(app: Quart) -> None:
83 async with app.test_request_context("/"):
84 await flash("bar", "error")
85 await flash("foo", "info")
86 assert get_flashed_messages(with_categories=True) == [
87 ("error", "bar"),
88 ("info", "foo"),
89 ]
90 assert get_flashed_messages(with_categories=True) == [
91 ("error", "bar"),
92 ("info", "foo"),
93 ]
94
95
96async def test_flash_category_filter(app: Quart) -> None:

Callers

nothing calls this directly

Calls 3

flashFunction · 0.90
get_flashed_messagesFunction · 0.90
test_request_contextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…