Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 0b40efe

Browse files
committed
Generate async servers in tests
1 parent d0af035 commit 0b40efe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ async def protoc(path: str | Path, output_dir: str | Path, reference: bool = Fal
5959
"--experimental_allow_proto3_optional",
6060
"--custom_opt=pydantic_dataclasses",
6161
"--custom_opt=client_generation=async_sync",
62+
"--custom_opt=server_generation=async",
6263
f"--proto_path={path.as_posix()}",
6364
f"--custom_out={output_dir.as_posix()}",
6465
*[p.as_posix() for p in path.glob("*.proto")],
@@ -74,6 +75,7 @@ async def protoc(path: str | Path, output_dir: str | Path, reference: bool = Fal
7475
]
7576

7677
if not reference:
78+
command.insert(3, "--python_betterproto2_opt=server_generation=async")
7779
command.insert(3, "--python_betterproto2_opt=client_generation=async_sync")
7880

7981
proc = await asyncio.create_subprocess_exec(

0 commit comments

Comments
 (0)