diff options
author | qrort <qrort@yandex-team.com> | 2022-11-17 19:38:20 +0300 |
---|---|---|
committer | qrort <qrort@yandex-team.com> | 2022-11-17 19:38:20 +0300 |
commit | 487326d832ec22895f2c9209df5407c17f2c816d (patch) | |
tree | 8cedd0ccc03d0ae4d251ef98934277af92181dd0 /library/python/pytest/plugins/fixtures.py | |
parent | 019071feb92f224930b5975d31ecc110f467a618 (diff) | |
download | ydb-487326d832ec22895f2c9209df5407c17f2c816d.tar.gz |
yatest_common context file test
Diffstat (limited to 'library/python/pytest/plugins/fixtures.py')
-rw-r--r-- | library/python/pytest/plugins/fixtures.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/library/python/pytest/plugins/fixtures.py b/library/python/pytest/plugins/fixtures.py index 6f7e0a27e4..98e91ce41a 100644 --- a/library/python/pytest/plugins/fixtures.py +++ b/library/python/pytest/plugins/fixtures.py @@ -2,6 +2,7 @@ import os import pytest import six +from library.python.pytest.plugins.metrics import test_metrics MAX_ALLOWED_LINKS_COUNT = 10 @@ -15,9 +16,9 @@ def metrics(request): assert len(name) <= 128, "Length of the metric name must less than 128" assert type(value) in [int, float], "Metric value must be of type int or float" test_name = request.node.nodeid - if test_name not in request.config.test_metrics: - request.config.test_metrics[test_name] = {} - request.config.test_metrics[test_name][name] = value + if test_name not in test_metrics.metrics: + test_metrics[test_name] = {} + test_metrics[test_name][name] = value @classmethod def set_benchmark(cls, benchmark_values): |