mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 02:50:48 +00:00
✨ Feature: 带参数的 RegexStr()
(#2499)
This commit is contained in:
@ -361,7 +361,9 @@ async def test_state(app: App):
|
||||
regex_str, allow_types=[StateParam, DependParam]
|
||||
) as ctx:
|
||||
ctx.pass_params(state=fake_state)
|
||||
ctx.should_return("[cq:test,arg=value]")
|
||||
ctx.should_return(
|
||||
("[cq:test,arg=value]", "test", "arg=value", ("test", "arg=value"))
|
||||
)
|
||||
|
||||
async with app.test_dependent(
|
||||
regex_group, allow_types=[StateParam, DependParam]
|
||||
|
Reference in New Issue
Block a user