MCPcopy
hub / github.com/nonebot/nonebot2 / test_postprocessor

Function test_postprocessor

tests/test_broadcast.py:142–150  ·  view source on GitHub ↗
(
            bot: Bot,
            event: Event,
            state: T_State,
            sub: int = Depends(_dependency),
            default: int = 1,
        )

Source from the content-addressed store, hash-verified

140
141 @event_postprocessor
142 async def test_postprocessor(
143 bot: Bot,
144 event: Event,
145 state: T_State,
146 sub: int = Depends(_dependency),
147 default: int = 1,
148 ):
149 nonlocal runned
150 runned = True
151
152 assert test_postprocessor in {
153 dependent.call for dependent in message._event_postprocessors

Callers

nothing calls this directly

Calls 2

DependsFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected