diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-06 08:17:05 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-06 08:25:32 +0300 |
commit | 957f0c255bd884c03bf673d354346180583537bb (patch) | |
tree | ee18065a831df623246bf8fd32669936d1b66fbd /contrib/python/pytest-lazy-fixtures | |
parent | 754c5c17faf3622b414edc5ec8d61df214a4fa2c (diff) | |
download | ydb-957f0c255bd884c03bf673d354346180583537bb.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python/pytest-lazy-fixtures')
3 files changed, 6 insertions, 5 deletions
diff --git a/contrib/python/pytest-lazy-fixtures/.dist-info/METADATA b/contrib/python/pytest-lazy-fixtures/.dist-info/METADATA index e03b9014b7..8b36c5866f 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.1 Name: pytest-lazy-fixtures -Version: 1.1.0 +Version: 1.1.1 Summary: Allows you to use fixtures in @pytest.mark.parametrize. Home-page: https://github.com/dev-petrov/pytest-lazy-fixtures License: MIT diff --git a/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/normalizer.py b/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/normalizer.py index fdbfe86402..db4cfa8b00 100644 --- a/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/normalizer.py +++ b/contrib/python/pytest-lazy-fixtures/pytest_lazy_fixtures/normalizer.py @@ -64,14 +64,15 @@ def _normalize_call(callspec, metafunc, used_keys): fm = metafunc.config.pluginmanager.get_plugin("funcmanage") used_keys = used_keys or set() - valtype_keys = callspec.params.keys() - used_keys + params = callspec.params.copy() if pytest.version_tuple >= (8, 0, 0) else {**callspec.params, **callspec.funcargs} + valtype_keys = params.keys() - used_keys for arg in valtype_keys: - value = callspec.params[arg] + value = params[arg] fixturenames_closure, arg2fixturedefs = _get_fixturenames_closure_and_arg2fixturedefs(fm, metafunc, value) if fixturenames_closure and arg2fixturedefs: - extra_fixturenames = [fname for fname in fixturenames_closure if fname not in callspec.params] + extra_fixturenames = [fname for fname in fixturenames_closure if fname not in params] newmetafunc = _copy_metafunc(metafunc) newmetafunc.fixturenames = extra_fixturenames diff --git a/contrib/python/pytest-lazy-fixtures/ya.make b/contrib/python/pytest-lazy-fixtures/ya.make index 47d86e8e02..43c43a87f9 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.1.0) +VERSION(1.1.1) LICENSE(MIT) |