diff options
author | shadchin <shadchin@yandex-team.com> | 2023-08-26 16:23:24 +0300 |
---|---|---|
committer | shadchin <shadchin@yandex-team.com> | 2023-08-26 16:38:28 +0300 |
commit | b90673471b7a01d0b54dc8b5350d7341df5764bc (patch) | |
tree | e907bba0d42980e613bc391a544f6a4939e4ddc5 /library | |
parent | 3d7afbc27fb8661141277e0741c414554023dbca (diff) | |
download | ydb-b90673471b7a01d0b54dc8b5350d7341df5764bc.tar.gz |
Remove unused code
Diffstat (limited to 'library')
-rw-r--r-- | library/python/pytest/yatest_tools.py | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/library/python/pytest/yatest_tools.py b/library/python/pytest/yatest_tools.py index eb4818d2f7..1f3b6da655 100644 --- a/library/python/pytest/yatest_tools.py +++ b/library/python/pytest/yatest_tools.py @@ -15,59 +15,6 @@ SEP = '/' TEST_MOD_PREFIX = '__tests__.' -class Subtest(object): - def __init__( - self, - name, - test_name, - status, - comment, - elapsed, - result=None, - test_type=None, - logs=None, - cwd=None, - metrics=None, - ): - self._name = name - self._test_name = test_name - self.status = status - self.elapsed = elapsed - self.comment = comment - self.result = result - self.test_type = test_type - self.logs = logs or {} - self.cwd = cwd - self.metrics = metrics - - def __eq__(self, other): - if not isinstance(other, Subtest): - return False - return self.name == other.name and self.test_name == other.test_name - - def __str__(self): - return yatest_lib.tools.to_utf8(unicode(self)) - - def __unicode__(self): - return u"{}::{}".format(self.test_name, self.test_name) - - @property - def name(self): - return yatest_lib.tools.to_utf8(self._name) - - @property - def test_name(self): - return yatest_lib.tools.to_utf8(self._test_name) - - def __repr__(self): - return "Subtest [{}::{} - {}[{}]: {}]".format( - self.name, self.test_name, self.status, self.elapsed, self.comment - ) - - def __hash__(self): - return hash(str(self)) - - class SubtestInfo(object): skipped_prefix = '[SKIPPED] ' @@ -167,10 +114,6 @@ class Test(object): return [x.status for x in self.subtests].count(status) -class NoMd5FileException(Exception): - pass - - TEST_SUBTEST_SEPARATOR = '::' |