1from proto_schema_parser
import parser
2from proto_structs.ast
import includes_collection
8@pytest.mark.parametrize(
9 (
'proto_path',
'expected_includes'),
18 'userver/proto-structs/io/userver/proto_structs/hash_map.hpp',
19 'userver/proto-structs/io/userver/proto_structs/hash_map_conv.hpp',
23 'box/autobox/unbreakable_cycle.proto',
25 'userver/proto-structs/io/userver/utils/box.hpp',
26 'userver/proto-structs/io/userver/utils/box_conv.hpp',
31def test_includes_are_correct(proto_path, expected_includes) -> None:
33 file_ast = parser.Parser().parse(proto_source)
34 includes = includes_collection.collect(file_ast=file_ast, plugin_options=
None)
35 assert includes == expected_includes