diff --git a/src/djlint/settings.py b/src/djlint/settings.py index f8c9403..21fc941 100644 --- a/src/djlint/settings.py +++ b/src/djlint/settings.py @@ -15,7 +15,7 @@ ignored_tag_opening = r"|\*}|\?>|{% endassets %}{% endblock css %}""", + ) + result = runner.invoke(djlint, [tmp_file.name, "--reformat"]) + assert ( + open(tmp_file.name).read() + == """{% block css %} + {% assets "css_error" %} + + {% endassets %} +{% endblock css %} +""" + ) + assert result.exit_code == 1