diff --git a/tools/tests/test_css_parser.py b/tools/tests/test_css_parser.py index 1a60e6c1d6..56c3b84410 100644 --- a/tools/tests/test_css_parser.py +++ b/tools/tests/test_css_parser.py @@ -48,6 +48,20 @@ class ParserTestHappyPath(unittest.TestCase): declaration = block.declarations[0] self.assertIn('/* comment here */', declaration.text()) + def test_no_semicolon(self): + # type: () -> None + my_css = ''' + p { color: red } + ''' + + res = parse(my_css) + + self.assertEqual(res.text(), my_css) + + section = cast(CssSection, res.sections[0]) + + self.assertFalse(section.declaration_block.declarations[0].semicolon) + def test_multi_line_selector(self): # type: () -> None my_css = '''