plugin_tutorial: revise / condense test.py section and conclusion

This commit is contained in:
James Lu
2023-05-05 23:38:19 -07:00
committed by James Lu
parent 14ffe24e7a
commit 5e63c271b6
2 changed files with 91 additions and 81 deletions

View File

@ -1,3 +1,5 @@
.. _plugin-testing-guide:
***********************
Advanced Plugin Testing
***********************
@ -227,6 +229,8 @@ But there is a more compact syntax, using context managers::
with conf.supybot.commands.nested.context(False):
# stuff
.. _plugin-test-methods:
Plugin Test Methods
===================
The full list of test methods and how to use them.
@ -292,7 +296,7 @@ assertActionRegexp(query, regexp, flags=re.I)
Utilities
---------
feedMsg(query, to=None, frm=None)
feedMsg(query, to=None, frm=None)
Simply feeds query to whoever is
specified in to or to the bot itself if no one is specified. Can also
optionally specify the hostmask of the sender with the frm keyword.