mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
lint: Fix code that evaded our lint checks for string % non-tuple.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
d1b8497afb
commit
643bd18b9f
@@ -109,14 +109,14 @@ class TestHtmlBranches(unittest.TestCase):
|
||||
|
||||
self.assertEqual(set(template_id_dict.keys()), {'below_navbar', 'hello_{{ message }}', 'intro'})
|
||||
self.assertEqual(template_id_dict['hello_{{ message }}'], [
|
||||
'Line 12:%s/tools/tests/test_template_data/test_template1.html' % (ZULIP_PATH),
|
||||
'Line 12:%s/tools/tests/test_template_data/test_template2.html' % (ZULIP_PATH)])
|
||||
'Line 12:%s/tools/tests/test_template_data/test_template1.html' % (ZULIP_PATH,),
|
||||
'Line 12:%s/tools/tests/test_template_data/test_template2.html' % (ZULIP_PATH,)])
|
||||
self.assertEqual(template_id_dict['intro'], [
|
||||
'Line 10:%s/tools/tests/test_template_data/test_template1.html' % (ZULIP_PATH),
|
||||
'Line 11:%s/tools/tests/test_template_data/test_template1.html' % (ZULIP_PATH),
|
||||
'Line 11:%s/tools/tests/test_template_data/test_template2.html' % (ZULIP_PATH)])
|
||||
'Line 10:%s/tools/tests/test_template_data/test_template1.html' % (ZULIP_PATH,),
|
||||
'Line 11:%s/tools/tests/test_template_data/test_template1.html' % (ZULIP_PATH,),
|
||||
'Line 11:%s/tools/tests/test_template_data/test_template2.html' % (ZULIP_PATH,)])
|
||||
self.assertEqual(template_id_dict['below_navbar'], [
|
||||
'Line 10:%s/tools/tests/test_template_data/test_template2.html' % (ZULIP_PATH)])
|
||||
'Line 10:%s/tools/tests/test_template_data/test_template2.html' % (ZULIP_PATH,)])
|
||||
|
||||
def test_split_for_id_and_class(self) -> None:
|
||||
id1 = "{{ red|blue }}"
|
||||
|
||||
Reference in New Issue
Block a user