Пример #1
0
def test_copy_current_request_context_error() -> None:
    with pytest.raises(RuntimeError):
        copy_current_request_context(lambda: None)()
Пример #2
0
def flash(*args: Any, **kwargs: Any) -> None:
    asyncio.get_event_loop().sync_wait(  # type: ignore
        copy_current_request_context(quart_flash)(*args, **kwargs), )