Feature: 带参数的 RegexStr() (#2499)

This commit is contained in:
Bryan不可思议
2024-01-11 11:52:07 +08:00
committed by GitHub
parent 9b09b42f97
commit 5a6f4b9e1c
3 changed files with 50 additions and 8 deletions

View File

@ -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]