Description: Disable tests that require network.
Author: Bas Couwenberg <sebastic@debian.org>

--- a/tests/test_ows.py
+++ b/tests/test_ows.py
@@ -107,6 +107,7 @@ def create_sum_one():
 
 class ExecuteTests(unittest.TestCase):
 
+    @unittest.skipIf('OFFLINE_TESTS' in os.environ, "offline tests only")
     def test_wfs(self):
         client = client_for(Service(processes=[create_feature()]))
         request_doc = WPS.Execute(
@@ -131,6 +132,7 @@ class ExecuteTests(unittest.TestCase):
         # . the inclusion of output
         # . the type of output
 
+    @unittest.skipIf('OFFLINE_TESTS' in os.environ, "offline tests only")
     def test_wcs(self):
         try:
             sys.path.append("/usr/lib/grass64/etc/python/")
--- a/tests/validator/test_complexvalidators.py
+++ b/tests/validator/test_complexvalidators.py
@@ -70,7 +70,8 @@ class ValidateTest(unittest.TestCase):
         self.assertTrue(validategml(gml_input, MODE.SIMPLE), 'SIMPLE validation')
         if WITH_GDAL:
             self.assertTrue(validategml(gml_input, MODE.STRICT), 'STRICT validation')
-            self.assertTrue(validategml(gml_input, MODE.VERYSTRICT), 'VERYSTRICT validation')
+            if os.environ.get('OFFLINE_TESTS') == None:
+                self.assertTrue(validategml(gml_input, MODE.VERYSTRICT), 'VERYSTRICT validation')
         gml_input.stream.close()
 
     def test_geojson_validator(self):
