changeset 1784:4e236dcf39cd

_ui_tests: skip if selenium is not installed
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 21 Sep 2012 07:43:57 +0200
parents d7ed70f19dc3
children 41eb0ef524e2 4c9c3321b92e
files _ui_tests/utils.py
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/_ui_tests/utils.py	Thu Sep 20 23:05:45 2012 +0200
+++ b/_ui_tests/utils.py	Fri Sep 21 07:43:57 2012 +0200
@@ -3,9 +3,15 @@
 # License: GNU GPL v3 (or any later version), see LICENSE.txt for details.
 
 """Functions to facilitate functional testing"""
+import pytest
 
 import random
-from selenium import webdriver
+
+try:
+    from selenium import webdriver
+except ImportError:
+    pytest.skip('selenium needs to be installed for this test')
+
 import driver_register