aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/pytest/plugins/metrics.py
diff options
context:
space:
mode:
authorqrort <qrort@yandex-team.com>2022-11-17 19:38:20 +0300
committerqrort <qrort@yandex-team.com>2022-11-17 19:38:20 +0300
commit487326d832ec22895f2c9209df5407c17f2c816d (patch)
tree8cedd0ccc03d0ae4d251ef98934277af92181dd0 /library/python/pytest/plugins/metrics.py
parent019071feb92f224930b5975d31ecc110f467a618 (diff)
downloadydb-487326d832ec22895f2c9209df5407c17f2c816d.tar.gz
yatest_common context file test
Diffstat (limited to 'library/python/pytest/plugins/metrics.py')
-rw-r--r--library/python/pytest/plugins/metrics.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/library/python/pytest/plugins/metrics.py b/library/python/pytest/plugins/metrics.py
new file mode 100644
index 0000000000..b6431c8b8e
--- /dev/null
+++ b/library/python/pytest/plugins/metrics.py
@@ -0,0 +1,10 @@
+class TestMetrics:
+ metrics = {}
+ def __getitem__(self, key):
+ return self.metrics.__getitem__(key)
+ def __setitem__(self, key, value):
+ return self.metrics.__setitem__(key, value)
+ def get(self, key):
+ return self.metrics.get(key)
+
+test_metrics = TestMetrics()