8000 add test for mapmessage · danielgtaylor/python-betterproto@b4c0bd2 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit b4c0bd2

Browse files
committed
add test for mapmessage
1 parent cb8f072 commit b4c0bd2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/test_mapmessage.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from tests.output_betterproto.mapmessage import (
2+
Test,
3+
Nested,
4+
)
5+
6+
def test_mapmessage():
7+
message = Test(
8+
items={
9+
"test": Nested(
10+
count=1,
11+
)
12+
}
13+
)
14+
15+
message.to_json()
16+
17+
assert isinstance(message.items["test"], Nested), "Wrong nested type after to_json"

0 commit comments

Comments
 (0)
0