mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Enterprise tests not run now count as 'skipped' instead of 'success'
This commit is contained in:
parent
a975cb06f7
commit
139fb60d84
@ -6,6 +6,7 @@ from selenium.webdriver.support import expected_conditions as EC
|
|||||||
|
|
||||||
import random, time
|
import random, time
|
||||||
import string
|
import string
|
||||||
|
import unittest
|
||||||
|
|
||||||
def is_enterprise(func):
|
def is_enterprise(func):
|
||||||
u"""
|
u"""
|
||||||
@ -20,6 +21,8 @@ def is_enterprise(func):
|
|||||||
|
|
||||||
if is_enterprise:
|
if is_enterprise:
|
||||||
return func(*args,**kwargs)
|
return func(*args,**kwargs)
|
||||||
|
else:
|
||||||
|
raise unittest.SkipTest("Skipping test")
|
||||||
return inner
|
return inner
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user