summaryrefslogtreecommitdiffstats
path: root/contrib/python/pytest-lazy-fixtures
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-07-31 11:14:11 +0300
committerrobot-piglet <[email protected]>2025-07-31 12:10:37 +0300
commite177928be72df9669dbb830824b4233a33c8723f (patch)
treea91d4ec6bbe7dc221c049475a91255c2996fd84e /contrib/python/pytest-lazy-fixtures
parenta1700abf3c749b43117e757deb259d2a7bcdf46a (diff)
Intermediate changes
commit_hash:60aaacde4a6a0fb68b6435d7f100365d0c77d64d
Diffstat (limited to 'contrib/python/pytest-lazy-fixtures')
-rw-r--r--contrib/python/pytest-lazy-fixtures/.dist-info/METADATA3
-rw-r--r--contrib/python/pytest-lazy-fixtures/README.md1
-rw-r--r--contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/fixture_collector.py2
-rw-r--r--contrib/python/pytest-lazy-fixtures/ya.make2
4 files changed, 5 insertions, 3 deletions
diff --git a/contrib/python/pytest-lazy-fixtures/.dist-info/METADATA b/contrib/python/pytest-lazy-fixtures/.dist-info/METADATA
index 94b8a038466..5186092087b 100644
--- a/contrib/python/pytest-lazy-fixtures/.dist-info/METADATA
+++ b/contrib/python/pytest-lazy-fixtures/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: pytest-lazy-fixtures
-Version: 1.3.0
+Version: 1.3.1
Summary: Allows you to use fixtures in @pytest.mark.parametrize.
Project-URL: Homepage, https://github.com/dev-petrov/pytest-lazy-fixtures
Project-URL: Repository, https://github.com/dev-petrov/pytest-lazy-fixtures
@@ -28,6 +28,7 @@ Improvements that have been made in this project:
1. You can use fixtures in any data structures
2. You can access the attributes of fixtures
3. You can use functions in fixtures
+4. It is compatible with [pytest-deadfixtures](https://github.com/jllorencetti/pytest-deadfixtures)
## Installation
diff --git a/contrib/python/pytest-lazy-fixtures/README.md b/contrib/python/pytest-lazy-fixtures/README.md
index 956c5335754..e77941bd699 100644
--- a/contrib/python/pytest-lazy-fixtures/README.md
+++ b/contrib/python/pytest-lazy-fixtures/README.md
@@ -14,6 +14,7 @@ Improvements that have been made in this project:
1. You can use fixtures in any data structures
2. You can access the attributes of fixtures
3. You can use functions in fixtures
+4. It is compatible with [pytest-deadfixtures](https://github.com/jllorencetti/pytest-deadfixtures)
## Installation
diff --git a/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/fixture_collector.py b/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/fixture_collector.py
index 47e1d474d99..982176c02db 100644
--- a/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/fixture_collector.py
+++ b/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/fixture_collector.py
@@ -12,7 +12,7 @@ def collect_fixtures(config: pytest.Config, items: list[pytest.Item]):
for marker in item.own_markers:
if marker.name != "parametrize":
continue
- params = marker.args[1]
+ params = marker.args[1] if len(marker.args) > 1 else marker.kwargs["argvalues"]
arg2fixturedefs = {}
for param in params:
_, _arg2fixturedefs = get_fixturenames_closure_and_arg2fixturedefs(fm, item.parent, param)
diff --git a/contrib/python/pytest-lazy-fixtures/ya.make b/contrib/python/pytest-lazy-fixtures/ya.make
index cfc750fa27c..bba355ab0f1 100644
--- a/contrib/python/pytest-lazy-fixtures/ya.make
+++ b/contrib/python/pytest-lazy-fixtures/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(1.3.0)
+VERSION(1.3.1)
LICENSE(MIT)