mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
ShrinkUrl: Lower snarfThrottle to .5 second while testing.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
9d66399420
commit
924b57eca3
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user