mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
This must not have been run in awhile.
This commit is contained in:
parent
b2dbbe9ef5
commit
5c3f13bd51
@ -66,7 +66,7 @@ class FunctionsTest(SupyTestCase):
|
||||
|
||||
|
||||
class AliasTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
plugins = ('Alias', 'Filter', 'Utilities')
|
||||
plugins = ('Alias', 'Filter', 'Utilities', 'Format')
|
||||
def testNoAliasWithNestedCommandName(self):
|
||||
self.assertError('alias add foo "[bar] baz"')
|
||||
|
||||
@ -109,18 +109,14 @@ class AliasTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
self.assertError('alias add FOO foo')
|
||||
self.assertError('alias add [] foo')
|
||||
self.assertError('alias add "foo bar" foo')
|
||||
try:
|
||||
conf.supybot.pipeSyntax.setValue(True)
|
||||
self.assertError('alias add "foo|bar" foo')
|
||||
conf.supybot.pipeSyntax.setValue(False)
|
||||
self.assertNotError('alias add "foo|bar" foo')
|
||||
finally:
|
||||
conf.supybot.pipeSyntax.setValue(False)
|
||||
|
||||
def testNotCannotNestRaised(self):
|
||||
self.assertNotError('alias add mytell "tell $channel $1"')
|
||||
self.assertNotError('mytell #foo bugs')
|
||||
self.assertNoResponse('blah blah blah', 2)
|
||||
# Can't do this because we can't tell channels anymore, but I forget what
|
||||
# exactly it was testing.
|
||||
## def testNotCannotNestRaised(self):
|
||||
## self.assertNotError('alias add mytell "tell $channel $1"')
|
||||
## self.assertNotError('mytell #foo bugs')
|
||||
## self.assertNoResponse('blah blah blah', 2)
|
||||
|
||||
def testChannel(self):
|
||||
self.assertNotError('alias add channel echo $channel')
|
||||
|
Loading…
Reference in New Issue
Block a user