mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +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>
|
||||
""")
|
||||
|
||||
class IMDB(callbacks.Privmsg):
|
||||
class Movies(callbacks.Privmsg):
|
||||
threaded = True
|
||||
def _formatMovie(self, movie):
|
||||
title = utils.unCommaThe(movie.title())
|
||||
@ -109,6 +109,7 @@ class IMDB(callbacks.Privmsg):
|
||||
irc.reply(msg, 'Matches: ' + utils.commaAndify(titles))
|
||||
|
||||
|
||||
Class = IMDB
|
||||
Class = Movies
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
@ -31,8 +31,8 @@
|
||||
|
||||
from test import *
|
||||
|
||||
class IMDBTestCase(PluginTestCase, PluginDocumentation):
|
||||
plugins = ('IMDB',)
|
||||
class MoviesTestCase(PluginTestCase, PluginDocumentation):
|
||||
plugins = ('Movies',)
|
||||
def testImdb(self):
|
||||
self.assertNotError('imdb die hard')
|
||||
self.assertRegexp('imdb kevin spacey', 'is apparently a person')
|
||||
@ -42,6 +42,5 @@ class IMDBTestCase(PluginTestCase, PluginDocumentation):
|
||||
self.assertRegexp('imdb die hard', 'genres')
|
||||
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
Loading…
Reference in New Issue
Block a user