mirror of
https://github.com/Mikaela/Limnoria-doc.git
synced 2025-02-04 16:44:08 +01:00
advanced_plugin_testing.rst: Fix a couple of typos
This commit is contained in:
parent
05e9e4f643
commit
0d978be260
@ -200,7 +200,7 @@ testing for some reason, we could just do this::
|
|||||||
And now you can be assured that supybot.commands.nested is going to be off for
|
And now you can be assured that supybot.commands.nested is going to be off for
|
||||||
all of your test methods in this test case class.
|
all of your test methods in this test case class.
|
||||||
|
|
||||||
Temporaly setting a configuration variable
|
Temporarily setting a configuration variable
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
|
|
||||||
Sometimes we want to change a configuration variable only in a test (or in
|
Sometimes we want to change a configuration variable only in a test (or in
|
||||||
@ -211,7 +211,7 @@ historical way to do it is::
|
|||||||
|
|
||||||
class MyPluginTestCase(PluginTestCase):
|
class MyPluginTestCase(PluginTestCase):
|
||||||
def testThisThing(self):
|
def testThisThing(self):
|
||||||
original_value conf.supybot.commands.nested()
|
original_value = conf.supybot.commands.nested()
|
||||||
conf.supybot.commands.nested.setValue(False)
|
conf.supybot.commands.nested.setValue(False)
|
||||||
try:
|
try:
|
||||||
# stuff
|
# stuff
|
||||||
|
Loading…
Reference in New Issue
Block a user