Commits

Reimar Bauer committed 4e236dc

_ui_tests: skip if selenium is not installed

  • Participants
  • Parent commits d7ed70f

Comments (0)

Files changed (1)

File _ui_tests/utils.py

 # 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