mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
templates: Clean up zephyr-mirror.html.
This allows us to eliminate conditionals related to ignoring files and checking indentation.
This commit is contained in:
@@ -20,10 +20,9 @@ class ParserTest(unittest.TestCase):
|
||||
error: str,
|
||||
fn: Optional[str] = None,
|
||||
text: Optional[str] = None,
|
||||
check_indent: bool = True,
|
||||
) -> None:
|
||||
with self.assertRaisesRegex(TemplateParserException, error):
|
||||
validate(fn=fn, text=text, check_indent=check_indent)
|
||||
validate(fn=fn, text=text)
|
||||
|
||||
def test_is_django_block_tag(self) -> None:
|
||||
self.assertTrue(is_django_block_tag("block"))
|
||||
@@ -93,7 +92,7 @@ class ParserTest(unittest.TestCase):
|
||||
foo
|
||||
</p>
|
||||
"""
|
||||
self._assert_validate_error("Bad indentation.", text=my_html, check_indent=True)
|
||||
self._assert_validate_error("Bad indentation.", text=my_html)
|
||||
|
||||
def test_validate_state_depth(self) -> None:
|
||||
my_html = """
|
||||
|
||||
Reference in New Issue
Block a user