Skip to content

Commit 805c0e5

Browse files
Add documentation escaping test (#75)
1 parent 94a86e1 commit 805c0e5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_documentation.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,12 @@ def test_documentation() -> None:
3636

3737
check(ServiceStub.__doc__, "service")
3838
check(ServiceStub.get.__doc__, "method")
39+
40+
41+
def test_escaping() -> None:
42+
from .output_betterproto.documentation import ComplexDocumentation
43+
44+
ComplexDocumentation.__doc__ == """
45+
A comment with backslashes \\ and triple quotes \"\"\"
46+
Simple quotes are not escaped "
47+
"""

0 commit comments

Comments
 (0)