Commits

Reimar Bauer committed d9429da Draft

_ui_tests: skip if wiki server is not running

  • Participants
  • Parent commits 5b81e54

Comments (0)

Files changed (1)

_ui_tests/utils.py

 except ImportError:
     pytest.skip('selenium needs to be installed for this test')
 
+import config
+import urllib
+
+try:
+    f = urllib.urlopen(config.BASE_URL)
+except IOError:
+    pytest.skip('The UI tests need a wiki server running on %s' % config.BASE_URL)
+
 import driver_register