Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Aug 14, 2024
1 parent 611efca commit 316f43a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions dsfr/test/test_templatetags.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,9 @@ class TestForm2(DsfrBaseForm):
context = Context({"form": TestForm(), "form2": TestForm2()})

def test_dsfr_form_renders(self):
rendered_template = Template(
"{% load dsfr_tags %} {% dsfr_form %}"
).render(self.context)
rendered_template = Template("{% load dsfr_tags %} {% dsfr_form %}").render(
self.context
)
self.assertInHTML(
"""
<label for="id_test" class="fr-label">Ceci est un test*</label>
Expand Down Expand Up @@ -744,11 +744,13 @@ def test_notice_tag_rendered(self):
self.assertInHTML(
"""
<div class="fr-notice__body">
<p class="fr-notice__title">
Bandeau d’information importante avec <a href='#'
rel='noopener external'
title="intitulé - Ouvre une nouvelle fenêtre" target='_blank'>
lien</a>.
<p>
<span class="fr-notice__title">
Bandeau d’information importante avec <a href='#'
rel='noopener external'
title="intitulé - Ouvre une nouvelle fenêtre" target='_blank'>
lien</a>.
</span>
</p>
<button class="fr-btn--close fr-btn"
title="Masquer le message"
Expand Down

0 comments on commit 316f43a

Please sign in to comment.