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,8 +33,10 @@ from supybot.test import *
class DDGTestCase(PluginTestCase):
plugins = ('DDG',)
def testSearch(self):
self.assertRegexp(
'ddg search wikipedia', 'Wikipedia.*? - .*?https?\:\/\/')
if network:
def testSearch(self):
self.assertRegexp(
'ddg search wikipedia', 'Wikipedia.*? - .*?https?\:\/\/')
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: