File tree Expand file tree Collapse file tree 7 files changed +38
-9
lines changed
tests/allure_pytest/externals/pytest_lazy_fixture Expand file tree Collapse file tree 7 files changed +38
-9
lines changed Original file line number Diff line number Diff line change 11[tool .poe .tasks ]
22linter = " flake8 --extend-ignore=A003 ./src"
3- tests = """ pytest ../tests/allure_behave"""
3+
4+ [tool .poe .tasks .tests ]
5+ cmd = " pytest ../tests/allure_behave"
6+ env = { PYTEST_DISABLE_PLUGIN_AUTOLOAD = " true" }
Original file line number Diff line number Diff line change 11[tool .poe .tasks ]
22linter = " flake8 ./src"
3- tests = """ pytest ../tests/allure_nose2"""
3+
4+ [tool .poe .tasks .tests ]
5+ cmd = " pytest ../tests/allure_nose2"
6+ env = { PYTEST_DISABLE_PLUGIN_AUTOLOAD = " true" }
Original file line number Diff line number Diff line change 11[tool .poe .tasks ]
22linter = " flake8 ./src"
3- tests = " pytest ../tests/allure_pytest_bdd"
3+
4+ [tool .poe .tasks .tests ]
5+ cmd = " pytest ../tests/allure_pytest_bdd"
6+ env = { PYTEST_DISABLE_PLUGIN_AUTOLOAD = " true" }
Original file line number Diff line number Diff line change 11[tool .poe .tasks ]
22linter = " flake8 ./src"
3- tests = " pytest ../tests/allure_pytest"
3+
4+ [tool .poe .tasks .tests ]
5+ cmd = " pytest ../tests/allure_pytest"
6+ env = { PYTEST_DISABLE_PLUGIN_AUTOLOAD = " true" }
Original file line number Diff line number Diff line change 11[tool .poe .tasks ]
22linter = " flake8 ./src"
3- tests = { shell = """ python -m doctest ./src/listener/utils.py &&
4- pytest ../tests/allure_robotframework
5- """ }
3+
4+ [tool .poe .tasks .tests ]
5+ shell = " python -m doctest ./src/listener/utils.py && pytest ../tests/allure_robotframework"
6+ env = { PYTEST_DISABLE_PLUGIN_AUTOLOAD = " true" }
Original file line number Diff line number Diff line change 11[tool .poe .tasks ]
22linter = " flake8 ./allure-*/src ./tests"
3- tests = " pytest"
4- allure-collect = " pytest -p allure_pytest --alluredir ./.allure-results --clean-alluredir --allure-link-pattern issue:https://github.com/allure-framework/allure-python/issues/{0}"
53allure-generate = " allure generate --clean --output ./.allure-report ./.allure-results"
64allure-open = " allure open ./.allure-report"
75
6+ [tool .poe .tasks .tests ]
7+ cmd = " pytest"
8+ env = { PYTEST_DISABLE_PLUGIN_AUTOLOAD = " true" }
9+
10+ [tool .poe .tasks .allure-collect ]
11+ cmd = " pytest -p allure_pytest --alluredir ./.allure-results --clean-alluredir --allure-link-pattern issue:https://github.com/allure-framework/allure-python/issues/{0}"
12+ env = { PYTEST_DISABLE_PLUGIN_AUTOLOAD = " true" }
13+
814[tool .pytest .ini_options ]
915testpaths = [
1016 " tests"
Original file line number Diff line number Diff line change 77from allure_commons_test .container import has_container
88from allure_commons_test .container import has_before
99
10+ from packaging import version
11+
12+ pytestmark = pytest .mark .xfail (
13+ version .parse (pytest .__version__ ) >= version .parse ("8" ),
14+ reason = (
15+ "Lazy-fixture is incompatible with pytest 8 "
16+ "(see TvoroG/pytest-lazy-fixture#65)"
17+ ),
18+ )
19+
1020
1121@pytest .fixture
1222def lazy_fixture_runner (allure_pytest_runner : AllurePytestRunner ):
You can’t perform that action at this time.
0 commit comments