From fbf9b071ede8a7594a7c54cfe4a06e97988a5adc Mon Sep 17 00:00:00 2001 From: Kieran Gill Date: Wed, 13 Mar 2024 10:53:01 -0400 Subject: [PATCH] formatting --- tests/tests/templatetags/test_vite_asset.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/tests/templatetags/test_vite_asset.py b/tests/tests/templatetags/test_vite_asset.py index 0a2039f..1ed16b7 100644 --- a/tests/tests/templatetags/test_vite_asset.py +++ b/tests/tests/templatetags/test_vite_asset.py @@ -220,10 +220,13 @@ def test_vite_asset_kebab_attribute(): """ {% load django_vite %} {% vite_asset "src/entry.ts" json_encoded_attributes=json_encoded_attributes %} - """) - html = template.render(Context({ - "json_encoded_attributes": SafeString(json.dumps(additional_attributes)) - })) + """ + ) + html = template.render( + Context( + {"json_encoded_attributes": SafeString(json.dumps(additional_attributes))} + ) + ) soup = BeautifulSoup(html, "html.parser") script_tag = soup.find("script") assert script_tag["data-item-track"] == "reload"