Browse Source

Restoring authorship annotation for <artanis@yandex-team.ru>. Commit 2 of 2.

artanis 3 years ago
parent
commit
d1bc572c85
2 changed files with 12 additions and 12 deletions
  1. 8 8
      build/plugins/ytest.py
  2. 4 4
      contrib/python/ya.make

+ 8 - 8
build/plugins/ytest.py

@@ -352,11 +352,11 @@ def get_values_list(unit, key):
     return [r for r in res if r and r not in ['""', "''"]]
 
 
-def get_norm_paths(unit, key): 
-    # return paths without trailing (back)slash 
-    return [x.rstrip('\\/') for x in get_values_list(unit, key)] 
- 
- 
+def get_norm_paths(unit, key):
+    # return paths without trailing (back)slash
+    return [x.rstrip('\\/') for x in get_values_list(unit, key)]
+
+
 def get_unit_list_variable(unit, name):
     items = unit.get(name)
     if items:
@@ -715,7 +715,7 @@ def onadd_pytest_script(unit, *args):
     test_files = get_values_list(unit, 'TEST_SRCS_VALUE')
     tags = _get_test_tags(unit)
     requirements = get_values_list(unit, 'TEST_REQUIREMENTS_VALUE')
-    test_data = get_norm_paths(unit, 'TEST_DATA_VALUE') 
+    test_data = get_norm_paths(unit, 'TEST_DATA_VALUE')
     data, data_files = get_canonical_test_resources(unit)
     test_data += data
     python_paths = get_values_list(unit, 'TEST_PYTHON_PATH_VALUE')
@@ -760,7 +760,7 @@ def add_test_to_dart(unit, test_type, binary_path=None, runner_bin=None):
     test_files = get_values_list(unit, 'TEST_SRCS_VALUE')
     tags = _get_test_tags(unit)
     requirements = get_values_list(unit, 'TEST_REQUIREMENTS_VALUE')
-    test_data = get_norm_paths(unit, 'TEST_DATA_VALUE') 
+    test_data = get_norm_paths(unit, 'TEST_DATA_VALUE')
     data, data_files = get_canonical_test_resources(unit)
     test_data += data
     python_paths = get_values_list(unit, 'TEST_PYTHON_PATH_VALUE')
@@ -812,7 +812,7 @@ def onjava_test(unit, *args):
     unit_path = unit.path()
     path = _common.strip_roots(unit_path)
 
-    test_data = get_norm_paths(unit, 'TEST_DATA_VALUE') 
+    test_data = get_norm_paths(unit, 'TEST_DATA_VALUE')
     test_data.append('arcadia/build/scripts/run_junit.py')
     test_data.append('arcadia/build/scripts/unpacking_jtest_runner.py')
 

+ 4 - 4
contrib/python/ya.make

@@ -223,7 +223,7 @@ RECURSE(
     django-appconf
     django-bootstrap3
     django-braces
-    django-bulk-update 
+    django-bulk-update
     django-cachalot
     django-cache-memoize
     django-celery-beat
@@ -277,7 +277,7 @@ RECURSE(
     django-opentracing
     django-partial-index
     django-pdb
-    django-phonenumbers 
+    django-phonenumbers
     django-picklefield
     django-post-office
     django-postgrespool2
@@ -625,7 +625,7 @@ RECURSE(
     mkdocs
     mkdocs-material
     mock
-    model-mommy 
+    model-mommy
     Momoko
     MongoDBProxy
     mongoengine
@@ -734,7 +734,7 @@ RECURSE(
     pefile
     pem
     pexpect
-    pgcli 
+    pgcli
     PGPy
     pgspecial
     phonenumbers