DDG: Make tests honor --no-network.

This commit is contained in:
Valentin Lorentz 2020-05-15 21:24:01 +02:00
parent db184f962b
commit 5e90044fab

View File

@ -33,6 +33,8 @@ from supybot.test import *
class DDGTestCase(PluginTestCase): class DDGTestCase(PluginTestCase):
plugins = ('DDG',) plugins = ('DDG',)
if network:
def testSearch(self): def testSearch(self):
self.assertRegexp( self.assertRegexp(
'ddg search wikipedia', 'Wikipedia.*? - .*?https?\:\/\/') 'ddg search wikipedia', 'Wikipedia.*? - .*?https?\:\/\/')