From e6b9a9da1ba26a200b5ba5302ba06fec6520b029 Mon Sep 17 00:00:00 2001 From: Christopher Pickering Date: Thu, 19 Aug 2021 10:52:50 -0500 Subject: [PATCH] added support for jinja assets tag --- src/djlint/settings.py | 8 +++----- tests/test_djlint.py | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) 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