@@ -375,11 +375,12 @@ class TestMessageBase:
375
375
{"length" : 7 , "offset" : 141 , "type" : "spoiler" },
376
376
{"length" : 2 , "offset" : 150 , "type" : "custom_emoji" , "custom_emoji_id" : "1" },
377
377
{"length" : 10 , "offset" : 154 , "type" : "blockquote" },
378
+ {"length" : 15 , "offset" : 166 , "type" : "blockquote" },
378
379
]
379
380
test_text_v2 = (
380
381
r"Test for <bold, ita_lic, \`code, links, text-mention and `\pre. "
381
382
"http://google.com and bold nested in strk>trgh nested in italic. Python pre. Spoiled. "
382
- "π. blockquote."
383
+ "π. blockquote. Multiline \n quote "
383
384
)
384
385
test_message = Message (
385
386
message_id = 1 ,
@@ -585,7 +586,7 @@ def test_text_html_simple(self):
585
586
'<pre><code class="python">Python pre</code></pre>. '
586
587
'<span class="tg-spoiler">Spoiled</span>. '
587
588
'<tg-emoji emoji-id="1">π</tg-emoji>. '
588
- "<blockquote>blockquote</blockquote>."
589
+ "<blockquote>blockquote</blockquote>. <blockquote>Multiline \n quote</blockquote> "
589
590
)
590
591
text_html = self .test_message_v2 .text_html
591
592
assert text_html == test_html_string
@@ -606,7 +607,7 @@ def test_text_html_urled(self):
606
607
'<pre><code class="python">Python pre</code></pre>. '
607
608
'<span class="tg-spoiler">Spoiled</span>. '
608
609
'<tg-emoji emoji-id="1">π</tg-emoji>. '
609
- "<blockquote>blockquote</blockquote>."
610
+ "<blockquote>blockquote</blockquote>. <blockquote>Multiline \n quote</blockquote> "
610
611
)
611
612
text_html = self .test_message_v2 .text_html_urled
612
613
assert text_html == test_html_string
@@ -627,7 +628,8 @@ def test_text_markdown_v2_simple(self):
627
628
"[links](http://github.com/abc\\ \\ \\ )def), "
628
629
"[text\\ -mention](tg://user?id=123456789) and ```\\ `\\ \\ pre```\\ . "
629
630
r"http://google\.com and _bold *nested in ~strk\>trgh~ nested in* italic_\. "
630
- "```python\n Python pre```\\ . ||Spoiled||\\ . \\ . >blockquote\\ ."
631
+ "```python\n Python pre```\\ . ||Spoiled||\\ . \\ . "
632
+ "\n >blockquote\n \\ . \n >Multiline\n >quote"
631
633
)
632
634
text_markdown = self .test_message_v2 .text_markdown_v2
633
635
assert text_markdown == test_md_string
@@ -682,7 +684,7 @@ def test_text_markdown_v2_urled(self):
682
684
"[text\\ -mention](tg://user?id=123456789) and ```\\ `\\ \\ pre```\\ . "
683
685
r"[http://google\.com](http://google.com) and _bold *nested in ~strk\>trgh~ "
684
686
"nested in* italic_\\ . ```python\n Python pre```\\ . ||Spoiled||\\ . "
685
- "\\ . >blockquote\\ . "
687
+ "\\ . \n >blockquote\n \\ . \n >Multiline \n >quote "
686
688
)
687
689
text_markdown = self .test_message_v2 .text_markdown_v2_urled
688
690
assert text_markdown == test_md_string
@@ -799,7 +801,7 @@ def test_caption_html_simple(self):
799
801
'<pre><code class="python">Python pre</code></pre>. '
800
802
'<span class="tg-spoiler">Spoiled</span>. '
801
803
'<tg-emoji emoji-id="1">π</tg-emoji>. '
802
- "<blockquote>blockquote</blockquote>."
804
+ "<blockquote>blockquote</blockquote>. <blockquote>Multiline \n quote</blockquote> "
803
805
)
804
806
caption_html = self .test_message_v2 .caption_html
805
807
assert caption_html == test_html_string
@@ -820,7 +822,7 @@ def test_caption_html_urled(self):
820
822
'<pre><code class="python">Python pre</code></pre>. '
821
823
'<span class="tg-spoiler">Spoiled</span>. '
822
824
'<tg-emoji emoji-id="1">π</tg-emoji>. '
823
- "<blockquote>blockquote</blockquote>."
825
+ "<blockquote>blockquote</blockquote>. <blockquote>Multiline \n quote</blockquote> "
824
826
)
825
827
caption_html = self .test_message_v2 .caption_html_urled
826
828
assert caption_html == test_html_string
@@ -841,7 +843,8 @@ def test_caption_markdown_v2_simple(self):
841
843
"[links](http://github.com/abc\\ \\ \\ )def), "
842
844
"[text\\ -mention](tg://user?id=123456789) and ```\\ `\\ \\ pre```\\ . "
843
845
r"http://google\.com and _bold *nested in ~strk\>trgh~ nested in* italic_\. "
844
- "```python\n Python pre```\\ . ||Spoiled||\\ . \\ . >blockquote\\ ."
846
+ "```python\n Python pre```\\ . ||Spoiled||\\ . \\ . "
847
+ "\n >blockquote\n \\ . \n >Multiline\n >quote"
845
848
)
846
849
caption_markdown = self .test_message_v2 .caption_markdown_v2
847
850
assert caption_markdown == test_md_string
@@ -869,7 +872,7 @@ def test_caption_markdown_v2_urled(self):
869
872
"[text\\ -mention](tg://user?id=123456789) and ```\\ `\\ \\ pre```\\ . "
870
873
r"[http://google\.com](http://google.com) and _bold *nested in ~strk\>trgh~ "
871
874
"nested in* italic_\\ . ```python\n Python pre```\\ . ||Spoiled||\\ . "
872
- "\\ . >blockquote\\ . "
875
+ "\\ . \n >blockquote\n \\ . \n >Multiline \n >quote "
873
876
)
874
877
caption_markdown = self .test_message_v2 .caption_markdown_v2_urled
875
878
assert caption_markdown == test_md_string
@@ -1136,7 +1139,8 @@ async def test_reply_markdown_v2(self, monkeypatch, message):
1136
1139
"[links](http://github.com/abc\\ \\ \\ )def), "
1137
1140
"[text\\ -mention](tg://user?id=123456789) and ```\\ `\\ \\ pre```\\ . "
1138
1141
r"http://google\.com and _bold *nested in ~strk\>trgh~ nested in* italic_\. "
1139
- "```python\n Python pre```\\ . ||Spoiled||\\ . \\ . >blockquote\\ ."
1142
+ "```python\n Python pre```\\ . ||Spoiled||\\ . \\ . "
1143
+ "\n >blockquote\n \\ . \n >Multiline\n >quote"
1140
1144
)
1141
1145
1142
1146
async def make_assertion (* _ , ** kwargs ):
@@ -1178,7 +1182,7 @@ async def test_reply_html(self, monkeypatch, message):
1178
1182
'<pre><code class="python">Python pre</code></pre>. '
1179
1183
'<span class="tg-spoiler">Spoiled</span>. '
1180
1184
'<tg-emoji emoji-id="1">π</tg-emoji>. '
1181
- "<blockquote>blockquote</blockquote>."
1185
+ "<blockquote>blockquote</blockquote>. <blockquote>Multiline \n quote</blockquote> "
1182
1186
)
1183
1187
1184
1188
async def make_assertion (* _ , ** kwargs ):
0 commit comments