aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/tests
diff options
context:
space:
mode:
authordenisk <denisk@yandex-team.ru>2022-02-10 16:48:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:13 +0300
commita3e40d22cc86312046f69a10ea401b78e9efb746 (patch)
tree9133cfa57ce2fa5b31742d1dac3bc609e00297a8 /build/plugins/tests
parent0e38f1d675a0b3d02016acf698e8d04c0b224047 (diff)
downloadydb-a3e40d22cc86312046f69a10ea401b78e9efb746.tar.gz
Restoring authorship annotation for <denisk@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/plugins/tests')
-rw-r--r--build/plugins/tests/test_code_generator.py32
-rw-r--r--build/plugins/tests/ya.make2
2 files changed, 17 insertions, 17 deletions
diff --git a/build/plugins/tests/test_code_generator.py b/build/plugins/tests/test_code_generator.py
index a675d9068c..b9ef68bc0f 100644
--- a/build/plugins/tests/test_code_generator.py
+++ b/build/plugins/tests/test_code_generator.py
@@ -1,16 +1,16 @@
-from build.plugins import code_generator
-
-
-def test_include_parser():
- template_file = """
- @ from 'util/namespace.macro' import namespace, change_namespace, close_namespaces
- @ import 'market/tools/code_generator/templates/serialization/json.macro' as json
- @ import 'market/tools/code_generator/templates/serialization/request_parameters.macro' as rp
- #include <sss/abcdefg.h>
- #include<fff/asd>
- #include "hhh/quququ.h"
- """
-
- includes, induced = code_generator.CodeGeneratorTemplateParser.parse_includes(template_file.split('\n'))
- assert includes == ['util/namespace.macro', 'market/tools/code_generator/templates/serialization/json.macro', 'market/tools/code_generator/templates/serialization/request_parameters.macro']
- assert induced == ['sss/abcdefg.h', 'fff/asd', 'hhh/quququ.h']
+from build.plugins import code_generator
+
+
+def test_include_parser():
+ template_file = """
+ @ from 'util/namespace.macro' import namespace, change_namespace, close_namespaces
+ @ import 'market/tools/code_generator/templates/serialization/json.macro' as json
+ @ import 'market/tools/code_generator/templates/serialization/request_parameters.macro' as rp
+ #include <sss/abcdefg.h>
+ #include<fff/asd>
+ #include "hhh/quququ.h"
+ """
+
+ includes, induced = code_generator.CodeGeneratorTemplateParser.parse_includes(template_file.split('\n'))
+ assert includes == ['util/namespace.macro', 'market/tools/code_generator/templates/serialization/json.macro', 'market/tools/code_generator/templates/serialization/request_parameters.macro']
+ assert induced == ['sss/abcdefg.h', 'fff/asd', 'hhh/quququ.h']
diff --git a/build/plugins/tests/ya.make b/build/plugins/tests/ya.make
index 87228b98df..856b7ceb9a 100644
--- a/build/plugins/tests/ya.make
+++ b/build/plugins/tests/ya.make
@@ -7,7 +7,7 @@ PEERDIR(
)
TEST_SRCS(
- test_code_generator.py
+ test_code_generator.py
test_common.py
test_requirements.py
test_ssqls.py