Added more tests, update pyproject.toml

This commit is contained in:
Alex Root Junior 2022-10-01 22:12:25 +03:00
parent 6fbc1bcfde
commit d9f9ff74fe
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
8 changed files with 258 additions and 173 deletions

View file

@ -41,6 +41,12 @@ class TestCommandFilter:
"text,command,result",
[
["/test@tbot", Command(commands=["test"], prefix="/"), True],
["/test@tbot", Command("test", prefix="/"), True],
[
"/test@tbot",
Command(BotCommand(command="test", description="description"), prefix="/"),
True,
],
["!test", Command(commands=["test"], prefix="/"), False],
["/test@mention", Command(commands=["test"], prefix="/"), False],
["/tests", Command(commands=["test"], prefix="/"), False],