Add a testing framework

This changeset contains a set of Pytest fixtures and a mocked bot class to ease the writing of
Maubot plugin unit tests.

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2023-11-06 15:32:52 +01:00
parent 75879cfb93
commit 202c2836b2
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
5 changed files with 258 additions and 0 deletions

View file

@ -57,6 +57,8 @@ setuptools.setup(
entry_points="""
[console_scripts]
mbc=maubot.cli:app
[pytest11]
maubot=maubot.testing
""",
data_files=[
(".", ["maubot/example-config.yaml"]),