mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 12:12:54 +01:00
DDG: Make tests honor --no-network.
This commit is contained in:
parent
db184f962b
commit
5e90044fab
@ -33,8 +33,10 @@ from supybot.test import *
|
|||||||
class DDGTestCase(PluginTestCase):
|
class DDGTestCase(PluginTestCase):
|
||||||
plugins = ('DDG',)
|
plugins = ('DDG',)
|
||||||
|
|
||||||
def testSearch(self):
|
if network:
|
||||||
self.assertRegexp(
|
|
||||||
'ddg search wikipedia', 'Wikipedia.*? - .*?https?\:\/\/')
|
def testSearch(self):
|
||||||
|
self.assertRegexp(
|
||||||
|
'ddg search wikipedia', 'Wikipedia.*? - .*?https?\:\/\/')
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
||||||
|
Loading…
Reference in New Issue
Block a user