mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
python: Merge concatenated string literals that Black would uglify.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
d8d0e7dfff
commit
5028c081cb
@@ -7,11 +7,9 @@ from tools.lib.capitalization import check_capitalization, get_safe_text, is_cap
|
||||
|
||||
class GetSafeTextTestCase(TestCase):
|
||||
def test_get_safe_text(self) -> None:
|
||||
string = ('Messages in __page_params.product_name__ go to a '
|
||||
'stream and have a topic.')
|
||||
string = ('Messages in __page_params.product_name__ go to a stream and have a topic.')
|
||||
safe_text = get_safe_text(string)
|
||||
self.assertEqual(safe_text, 'Messages in __page_params_product_name__ '
|
||||
'go to a stream and have a topic.')
|
||||
self.assertEqual(safe_text, 'Messages in __page_params_product_name__ go to a stream and have a topic.')
|
||||
|
||||
string = "Zulip Zulip. Zulip some text!"
|
||||
safe_text = get_safe_text(string)
|
||||
|
||||
Reference in New Issue
Block a user