diff options
author | deshevoy <deshevoy@yandex-team.ru> | 2022-02-10 16:46:57 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:57 +0300 |
commit | 28148f76dbfcc644d96427d41c92f36cbf2fdc6e (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /library/python/pytest/yatest_tools.py | |
parent | e988f30484abe5fdeedcc7a5d3c226c01a21800c (diff) | |
download | ydb-28148f76dbfcc644d96427d41c92f36cbf2fdc6e.tar.gz |
Restoring authorship annotation for <deshevoy@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/python/pytest/yatest_tools.py')
-rw-r--r-- | library/python/pytest/yatest_tools.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/python/pytest/yatest_tools.py b/library/python/pytest/yatest_tools.py index 473bfeaadd..6b8b896394 100644 --- a/library/python/pytest/yatest_tools.py +++ b/library/python/pytest/yatest_tools.py @@ -284,10 +284,10 @@ def get_test_log_file_path(output_dir, class_name, test_name, extension="log"): def split_node_id(nodeid, test_suffix=None): - path, possible_open_bracket, params = nodeid.partition('[') + path, possible_open_bracket, params = nodeid.partition('[') separator = "::" - if separator in path: - path, test_name = path.split(separator, 1) + if separator in path: + path, test_name = path.split(separator, 1) else: test_name = os.path.basename(path) if test_suffix: @@ -300,5 +300,5 @@ def split_node_id(nodeid, test_suffix=None): class_name += separator + klass_name if separator in test_name: test_name = test_name.split(separator)[-1] - test_name += possible_open_bracket + params + test_name += possible_open_bracket + params return yatest_lib.tools.to_utf8(class_name), yatest_lib.tools.to_utf8(test_name) |