aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/testing
diff options
context:
space:
mode:
authorNikita Slyusarev <nslus@yandex-team.com>2022-02-10 16:46:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:52 +0300
commitcd77cecfc03a3eaf87816af28a33067c4f0cdb59 (patch)
tree1308e0bae862d52e0020d881fe758080437fe389 /library/python/testing
parentcdae02d225fb5b3afbb28990e79a7ac6c9125327 (diff)
downloadydb-cd77cecfc03a3eaf87816af28a33067c4f0cdb59.tar.gz
Restoring authorship annotation for Nikita Slyusarev <nslus@yandex-team.com>. Commit 1 of 2.
Diffstat (limited to 'library/python/testing')
-rw-r--r--library/python/testing/import_test/ya.make6
-rw-r--r--library/python/testing/recipe/ya.make6
-rw-r--r--library/python/testing/yatest_common/yatest/common/canonical.py20
-rw-r--r--library/python/testing/yatest_common/yatest/common/network.py2
-rw-r--r--library/python/testing/yatest_common/yatest/common/path.py2
-rw-r--r--library/python/testing/yatest_lib/ya.make4
6 files changed, 20 insertions, 20 deletions
diff --git a/library/python/testing/import_test/ya.make b/library/python/testing/import_test/ya.make
index fae36ffe8f..68b147a00c 100644
--- a/library/python/testing/import_test/ya.make
+++ b/library/python/testing/import_test/ya.make
@@ -1,7 +1,7 @@
-OWNER(
+OWNER(
g:yatest
- exprmntr
-)
+ exprmntr
+)
PY23_LIBRARY()
diff --git a/library/python/testing/recipe/ya.make b/library/python/testing/recipe/ya.make
index dd323aa245..d6fa84a873 100644
--- a/library/python/testing/recipe/ya.make
+++ b/library/python/testing/recipe/ya.make
@@ -1,7 +1,7 @@
-OWNER(
- exprmntr
+OWNER(
+ exprmntr
g:yatest
-)
+)
PY23_LIBRARY()
diff --git a/library/python/testing/yatest_common/yatest/common/canonical.py b/library/python/testing/yatest_common/yatest/common/canonical.py
index b6a136d3e9..443a5106ea 100644
--- a/library/python/testing/yatest_common/yatest/common/canonical.py
+++ b/library/python/testing/yatest_common/yatest/common/canonical.py
@@ -12,22 +12,22 @@ from . import path
yatest_logger = logging.getLogger("ya.test")
-def _copy(src, dst, universal_lines=False):
- if universal_lines:
- with open(dst, "wb") as f:
+def _copy(src, dst, universal_lines=False):
+ if universal_lines:
+ with open(dst, "wb") as f:
for line in open(src, "rbU"):
- f.write(line)
- return
- shutil.copy(src, dst)
-
-
+ f.write(line)
+ return
+ shutil.copy(src, dst)
+
+
def canonical_file(path, diff_tool=None, local=False, universal_lines=False, diff_file_name=None, diff_tool_timeout=None):
"""
Create canonical file that can be returned from a test
:param path: path to the file
:param diff_tool: custom diff tool to use for comparison with the canonical one, if None - default will be used
:param local: save file locally, otherwise move to sandbox
- :param universal_lines: normalize EOL
+ :param universal_lines: normalize EOL
:param diff_tool_timeout: timeout for running diff tool
:return: object that can be canonized
"""
@@ -36,7 +36,7 @@ def canonical_file(path, diff_tool=None, local=False, universal_lines=False, dif
tempdir = tempfile.mkdtemp(prefix="canon_tmp", dir=runtime.build_path())
safe_path = os.path.join(tempdir, os.path.basename(abs_path))
# if the created file is in output_path, we copy it, so that it will be available when the tests finishes
- _copy(path, safe_path, universal_lines=universal_lines)
+ _copy(path, safe_path, universal_lines=universal_lines)
if diff_tool:
if not isinstance(diff_tool, six.string_types):
try: # check if iterable
diff --git a/library/python/testing/yatest_common/yatest/common/network.py b/library/python/testing/yatest_common/yatest/common/network.py
index 37bcb1b8e0..291aa49151 100644
--- a/library/python/testing/yatest_common/yatest/common/network.py
+++ b/library/python/testing/yatest_common/yatest/common/network.py
@@ -1,4 +1,4 @@
-# coding=utf-8
+# coding=utf-8
import os
import errno
diff --git a/library/python/testing/yatest_common/yatest/common/path.py b/library/python/testing/yatest_common/yatest/common/path.py
index 6fed7dda8a..079770605e 100644
--- a/library/python/testing/yatest_common/yatest/common/path.py
+++ b/library/python/testing/yatest_common/yatest/common/path.py
@@ -1,4 +1,4 @@
-# coding=utf-8
+# coding=utf-8
import errno
import os
diff --git a/library/python/testing/yatest_lib/ya.make b/library/python/testing/yatest_lib/ya.make
index 342bae82ba..7453e5b665 100644
--- a/library/python/testing/yatest_lib/ya.make
+++ b/library/python/testing/yatest_lib/ya.make
@@ -3,8 +3,8 @@ OWNER(g:yatest)
PY23_LIBRARY()
PY_SRCS(
- NAMESPACE
- yatest_lib
+ NAMESPACE
+ yatest_lib
external.py
test_splitter.py
tools.py