Turn on BDD tests for pytest 3.0 again
pytest-bdd is fixed in the respective PR
This commit is contained in:
parent
bcb06f0cc6
commit
003952748b
@ -121,8 +121,7 @@ def pytest_collection_modifyitems(items):
|
|||||||
|
|
||||||
def pytest_ignore_collect(path):
|
def pytest_ignore_collect(path):
|
||||||
"""Ignore BDD tests if we're unable to run them."""
|
"""Ignore BDD tests if we're unable to run them."""
|
||||||
skip_bdd = (hasattr(sys, 'frozen') or
|
skip_bdd = hasattr(sys, 'frozen')
|
||||||
int(pytest.__version__.split('.')[0]) == 3)
|
|
||||||
rel_path = path.relto(os.path.dirname(__file__))
|
rel_path = path.relto(os.path.dirname(__file__))
|
||||||
return rel_path == os.path.join('end2end', 'features') and skip_bdd
|
return rel_path == os.path.join('end2end', 'features') and skip_bdd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user