mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Changed the name back to News.
This commit is contained in:
parent
17e555c83d
commit
7b8322d6fd
@ -76,7 +76,7 @@ be a lot more detailed. (Subject: "Another test news item", added by Strike on
|
|||||||
07:12 PM, September 12, 2003, expires at 08:36 PM, September 12, 2003)
|
07:12 PM, September 12, 2003, expires at 08:36 PM, September 12, 2003)
|
||||||
""")
|
""")
|
||||||
|
|
||||||
class ChannelNews(plugins.ChannelDBHandler, callbacks.Privmsg):
|
class News(plugins.ChannelDBHandler, callbacks.Privmsg):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
plugins.ChannelDBHandler.__init__(self)
|
plugins.ChannelDBHandler.__init__(self)
|
||||||
callbacks.Privmsg.__init__(self)
|
callbacks.Privmsg.__init__(self)
|
||||||
@ -273,6 +273,6 @@ class ChannelNews(plugins.ChannelDBHandler, callbacks.Privmsg):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Class = ChannelNews
|
Class = News
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
@ -42,8 +42,8 @@ except ImportError:
|
|||||||
|
|
||||||
|
|
||||||
if sqlite is not None:
|
if sqlite is not None:
|
||||||
class ChannelNewsTestCase(ChannelPluginTestCase):
|
class NewsTestCase(ChannelPluginTestCase):
|
||||||
plugins = ('ChannelNews',)
|
plugins = ('News',)
|
||||||
def testAddnews(self):
|
def testAddnews(self):
|
||||||
self.assertNotError('addnews 0 subject: foo')
|
self.assertNotError('addnews 0 subject: foo')
|
||||||
self.assertRegexp('news', 'subject')
|
self.assertRegexp('news', 'subject')
|
Loading…
Reference in New Issue
Block a user