ShrinkUrl: Lower snarfThrottle to .5 second while testing.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2009-10-04 23:22:52 -04:00
parent 9d66399420
commit 924b57eca3

View File

@ -51,7 +51,7 @@ class ShrinkUrlTestCase(ChannelPluginTestCase):
def testTinysnarf(self): def testTinysnarf(self):
try: try:
conf.supybot.snarfThrottle.setValue(1) conf.supybot.snarfThrottle.setValue(.5)
conf.supybot.plugins.ShrinkUrl.default.setValue('tiny') conf.supybot.plugins.ShrinkUrl.default.setValue('tiny')
conf.supybot.plugins.ShrinkUrl.shrinkSnarfer.setValue(True) conf.supybot.plugins.ShrinkUrl.shrinkSnarfer.setValue(True)
self.assertSnarfRegexp( self.assertSnarfRegexp(
@ -83,7 +83,7 @@ class ShrinkUrlTestCase(ChannelPluginTestCase):
def testLnsnarf(self): def testLnsnarf(self):
try: try:
conf.supybot.snarfThrottle.setValue(1) conf.supybot.snarfThrottle.setValue(.5)
conf.supybot.plugins.ShrinkUrl.default.setValue('ln') conf.supybot.plugins.ShrinkUrl.default.setValue('ln')
conf.supybot.plugins.ShrinkUrl.shrinkSnarfer.setValue(True) conf.supybot.plugins.ShrinkUrl.shrinkSnarfer.setValue(True)
self.assertSnarfRegexp( self.assertSnarfRegexp(
@ -115,7 +115,7 @@ class ShrinkUrlTestCase(ChannelPluginTestCase):
def testXrlsnarf(self): def testXrlsnarf(self):
try: try:
conf.supybot.snarfThrottle.setValue(1) conf.supybot.snarfThrottle.setValue(.5)
conf.supybot.plugins.ShrinkUrl.default.setValue('xrl') conf.supybot.plugins.ShrinkUrl.default.setValue('xrl')
conf.supybot.plugins.ShrinkUrl.shrinkSnarfer.setValue(True) conf.supybot.plugins.ShrinkUrl.shrinkSnarfer.setValue(True)
self.assertSnarfRegexp( self.assertSnarfRegexp(
@ -133,7 +133,7 @@ class ShrinkUrlTestCase(ChannelPluginTestCase):
tiny = conf.supybot.plugins.ShrinkUrl.shrinkSnarfer() tiny = conf.supybot.plugins.ShrinkUrl.shrinkSnarfer()
snarf = conf.supybot.plugins.ShrinkUrl.nonSnarfingRegexp() snarf = conf.supybot.plugins.ShrinkUrl.nonSnarfingRegexp()
try: try:
conf.supybot.snarfThrottle.setValue(1) conf.supybot.snarfThrottle.setValue(.5)
conf.supybot.plugins.ShrinkUrl.default.setValue('tiny') conf.supybot.plugins.ShrinkUrl.default.setValue('tiny')
conf.supybot.plugins.ShrinkUrl.nonSnarfingRegexp.set('m/sf/') conf.supybot.plugins.ShrinkUrl.nonSnarfingRegexp.set('m/sf/')
conf.supybot.plugins.ShrinkUrl.minimumLength.setValue(10) conf.supybot.plugins.ShrinkUrl.minimumLength.setValue(10)