Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kierangillblueberry committed Mar 13, 2024
1 parent e44df5f commit fbf9b07
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/tests/templatetags/test_vite_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fbf9b07

Please sign in to comment.