mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 13:01:07 -05:00
Isup: Disable tests if --no-network is enabled
This commit is contained in:
parent
7bb4cdee41
commit
098f7f247f
@ -34,6 +34,8 @@ from supybot.test import *
|
|||||||
class IsupTestCase(PluginTestCase):
|
class IsupTestCase(PluginTestCase):
|
||||||
plugins = ('Isup',)
|
plugins = ('Isup',)
|
||||||
|
|
||||||
|
@unittest.skipUnless(network, "Network-based tests have been disabled via "
|
||||||
|
"--no-network")
|
||||||
def testBasics(self):
|
def testBasics(self):
|
||||||
self.assertRegexp('check google.com', "It's just you")
|
self.assertRegexp('check google.com', "It's just you")
|
||||||
self.assertRegexp('check dhjeheiaoij', "invalid|url|error", re.I)
|
self.assertRegexp('check dhjeheiaoij', "invalid|url|error", re.I)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user