mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-07 01:54:08 +01:00
Changed the name of the IMDB plugin to Movies.
This commit is contained in:
parent
fa8fc4ab52
commit
7ca40702bf
@ -62,7 +62,7 @@ example = utils.wrapLines("""
|
|||||||
<supybot> "Kevin Spacey" is apparently a person. More information is available at <http://us.imdb.com/Name?Spacey,+Kevin>
|
<supybot> "Kevin Spacey" is apparently a person. More information is available at <http://us.imdb.com/Name?Spacey,+Kevin>
|
||||||
""")
|
""")
|
||||||
|
|
||||||
class IMDB(callbacks.Privmsg):
|
class Movies(callbacks.Privmsg):
|
||||||
threaded = True
|
threaded = True
|
||||||
def _formatMovie(self, movie):
|
def _formatMovie(self, movie):
|
||||||
title = utils.unCommaThe(movie.title())
|
title = utils.unCommaThe(movie.title())
|
||||||
@ -109,6 +109,7 @@ class IMDB(callbacks.Privmsg):
|
|||||||
irc.reply(msg, 'Matches: ' + utils.commaAndify(titles))
|
irc.reply(msg, 'Matches: ' + utils.commaAndify(titles))
|
||||||
|
|
||||||
|
|
||||||
Class = IMDB
|
Class = Movies
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
@ -31,8 +31,8 @@
|
|||||||
|
|
||||||
from test import *
|
from test import *
|
||||||
|
|
||||||
class IMDBTestCase(PluginTestCase, PluginDocumentation):
|
class MoviesTestCase(PluginTestCase, PluginDocumentation):
|
||||||
plugins = ('IMDB',)
|
plugins = ('Movies',)
|
||||||
def testImdb(self):
|
def testImdb(self):
|
||||||
self.assertNotError('imdb die hard')
|
self.assertNotError('imdb die hard')
|
||||||
self.assertRegexp('imdb kevin spacey', 'is apparently a person')
|
self.assertRegexp('imdb kevin spacey', 'is apparently a person')
|
||||||
@ -42,6 +42,5 @@ class IMDBTestCase(PluginTestCase, PluginDocumentation):
|
|||||||
self.assertRegexp('imdb die hard', 'genres')
|
self.assertRegexp('imdb die hard', 'genres')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user