diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /build/plugins/tests/test_ssqls.py | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/plugins/tests/test_ssqls.py')
-rw-r--r-- | build/plugins/tests/test_ssqls.py | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/build/plugins/tests/test_ssqls.py b/build/plugins/tests/test_ssqls.py index db9e8c93bc..2a1d032109 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'] |