зеркало из https://github.com/mozilla/bedrock.git
Only run download test setup when tests are selected
This commit is contained in:
Родитель
3851c4ef65
Коммит
fbade031ef
|
@ -23,7 +23,7 @@ case $1 in
|
|||
BROWSER_NAME="internet explorer"
|
||||
BROWSER_VERSION="8.0"
|
||||
PLATFORM="Windows 7"
|
||||
MARK_EXPRESSION="sanity and not headless"
|
||||
MARK_EXPRESSION=sanity
|
||||
;;
|
||||
download)
|
||||
DRIVER=
|
||||
|
|
|
@ -8,7 +8,8 @@ import requests
|
|||
|
||||
|
||||
def pytest_generate_tests(metafunc):
|
||||
if 'not download' in metafunc.config.option.markexpr:
|
||||
markexpr = metafunc.config.option.markexpr
|
||||
if markexpr and markexpr != 'download':
|
||||
return # test deslected by mark expression
|
||||
base_url = metafunc.config.option.base_url
|
||||
if not base_url:
|
||||
|
|
|
@ -8,8 +8,9 @@ import requests
|
|||
|
||||
|
||||
def pytest_generate_tests(metafunc):
|
||||
if 'not download' in metafunc.config.option.markexpr:
|
||||
return # test deslected by mark expression
|
||||
markexpr = metafunc.config.option.markexpr
|
||||
if markexpr and markexpr != 'download':
|
||||
return # only run when specifically selected
|
||||
base_url = metafunc.config.option.base_url
|
||||
if not base_url:
|
||||
pytest.skip(
|
||||
|
|
Загрузка…
Ссылка в новой задаче