mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
RFE 871111 : Added test cases for --nokey option
This commit is contained in:
parent
4b0ed27fef
commit
99c412940c
@ -73,6 +73,13 @@ if sqlite:
|
|||||||
self.assertResponse('test foo:bar', 'baz')
|
self.assertResponse('test foo:bar', 'baz')
|
||||||
self.assertHelp('help test')
|
self.assertHelp('help test')
|
||||||
self.assertNotError('lookup remove test')
|
self.assertNotError('lookup remove test')
|
||||||
|
# Re-add the lookup, this time using the --nokey option
|
||||||
|
self.assertNotError('lookup add --nokey test foo.supyfact')
|
||||||
|
# And verify that the return of a random result does *not* include
|
||||||
|
# the key value, and that the value is at the beginning of the
|
||||||
|
# string
|
||||||
|
self.assertRegexp('test', r"^(bar|baz|my mom)")
|
||||||
|
self.assertNotError('lookup remove test')
|
||||||
try:
|
try:
|
||||||
original = conf.supybot.reply.WhenNotCommand()
|
original = conf.supybot.reply.WhenNotCommand()
|
||||||
conf.supybot.reply.WhenNotCommand.setValue(True)
|
conf.supybot.reply.WhenNotCommand.setValue(True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user