File tree 7 files changed +38
-9
lines changed
tests/allure_pytest/externals/pytest_lazy_fixture
7 files changed +38
-9
lines changed Original file line number Diff line number Diff line change 1
1
[tool .poe .tasks ]
2
2
linter = " 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 1
1
[tool .poe .tasks ]
2
2
linter = " 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 1
1
[tool .poe .tasks ]
2
2
linter = " 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 1
1
[tool .poe .tasks ]
2
2
linter = " 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 1
1
[tool .poe .tasks ]
2
2
linter = " 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 1
1
[tool .poe .tasks ]
2
2
linter = " 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}"
5
3
allure-generate = " allure generate --clean --output ./.allure-report ./.allure-results"
6
4
allure-open = " allure open ./.allure-report"
7
5
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
+
8
14
[tool .pytest .ini_options ]
9
15
testpaths = [
10
16
" tests"
Original file line number Diff line number Diff line change 7
7
from allure_commons_test .container import has_container
8
8
from allure_commons_test .container import has_before
9
9
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
+
10
20
11
21
@pytest .fixture
12
22
def lazy_fixture_runner (allure_pytest_runner : AllurePytestRunner ):
You can’t perform that action at this time.
0 commit comments