userver: /data/code/userver/libraries/proto-structs/codegen-tests/pytest/ast/utils.py Source File
Loading...
Searching...
No Matches
utils.py
1import pathlib
2
3import yatest.common
4
5
6def load_proto_source_file(path: str) -> str:
7 proper_path = pathlib.Path('..', '..', 'proto') / path
8 resolved_path = pathlib.Path(yatest.common.test_source_path(str(proper_path)))
9 return resolved_path.read_text(encoding='utf-8')