diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /build/plugins/tests | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/plugins/tests')
-rw-r--r-- | build/plugins/tests/test_ssqls.py | 46 | ||||
-rw-r--r-- | build/plugins/tests/ya.make | 2 |
2 files changed, 24 insertions, 24 deletions
diff --git a/build/plugins/tests/test_ssqls.py b/build/plugins/tests/test_ssqls.py index 2a1d032109..db9e8c93bc 100644 --- a/build/plugins/tests/test_ssqls.py +++ b/build/plugins/tests/test_ssqls.py @@ -1,23 +1,23 @@ -import xml.etree.cElementTree as ET - -from build.plugins import ssqls - - -example = '''\ -<?xml version="1.0" encoding="utf-8"?> -<DbObject> - <include path="A.ssqls"><a.h></include> - <include>"b.h"</include> - - <ancestors> - <ancestor path="C.ssqls"/> - </ancestors> -</DbObject> -''' - - -def test_include_parser(): - doc = ET.fromstring(example) - xmls, headers = ssqls.SSQLSParser.parse_doc(doc) - assert headers == ['a.h', 'b.h', 'C.h'] - assert xmls == ['A.ssqls', 'C.ssqls'] +import xml.etree.cElementTree as ET + +from build.plugins import ssqls + + +example = '''\ +<?xml version="1.0" encoding="utf-8"?> +<DbObject> + <include path="A.ssqls"><a.h></include> + <include>"b.h"</include> + + <ancestors> + <ancestor path="C.ssqls"/> + </ancestors> +</DbObject> +''' + + +def test_include_parser(): + doc = ET.fromstring(example) + xmls, headers = ssqls.SSQLSParser.parse_doc(doc) + assert headers == ['a.h', 'b.h', 'C.h'] + assert xmls == ['A.ssqls', 'C.ssqls'] diff --git a/build/plugins/tests/ya.make b/build/plugins/tests/ya.make index 87228b98df..ad8f2c6a3b 100644 --- a/build/plugins/tests/ya.make +++ b/build/plugins/tests/ya.make @@ -10,7 +10,7 @@ TEST_SRCS( test_code_generator.py test_common.py test_requirements.py - test_ssqls.py + test_ssqls.py ) END() |