Skip to content

Commit 4329a83

Browse files
committed
test: fix test_process
tweak
1 parent 4abc83c commit 4329a83

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

tests/test_process.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88
async def test_process(app: App):
99
from plugins.process import (
1010
test,
11-
test_ignore,
1211
test_not_pass_perm,
1312
test_not_pass_rule,
1413
)
1514

1615
Message = make_fake_message()
1716

18-
# test
19-
async with app.test_matcher() as ctx:
17+
async with app.test_matcher([test, test_not_pass_perm, test_not_pass_rule]) as ctx:
2018
adapter = ctx.create_adapter()
2119
bot = ctx.create_bot(adapter=adapter)
2220

@@ -43,7 +41,13 @@ async def test_process(app: App):
4341

4442
ctx.should_rejected(matcher=test)
4543

46-
# test ignore
44+
45+
@pytest.mark.asyncio
46+
async def test_ignore(app: App):
47+
from plugins.process import test_ignore
48+
49+
Message = make_fake_message()
50+
4751
async with app.test_matcher(test_ignore) as ctx:
4852
adapter = ctx.create_adapter()
4953
bot = ctx.create_bot(adapter=adapter)

uv.lock

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)