From 098f7f247fefd11e64dbb4b78db05bda5443d7b3 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 9 May 2015 08:03:51 -0700 Subject: [PATCH] Isup: Disable tests if --no-network is enabled --- Isup/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Isup/test.py b/Isup/test.py index c599cda..cf18b4d 100644 --- a/Isup/test.py +++ b/Isup/test.py @@ -34,6 +34,8 @@ from supybot.test import * class IsupTestCase(PluginTestCase): plugins = ('Isup',) + @unittest.skipUnless(network, "Network-based tests have been disabled via " + "--no-network") def testBasics(self): self.assertRegexp('check google.com', "It's just you") self.assertRegexp('check dhjeheiaoij', "invalid|url|error", re.I)