Skip to content

Commit

Permalink
Add an ingestion test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaedroho committed Feb 19, 2021
1 parent 61297cd commit 7b659a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wagtail_localize/segments/tests/test_segment_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ def make_test_page(**kwargs):
},
order=12,
),
OverridableSegmentValue(
"'http://example.com'",
"http://example.fr",
order=13,
)
]

RICH_TEXT_TEST_OUTPUT = '<h1>Ceci est une rubrique</h1><p>Ceci est un paragraphe. &lt;foo&gt; <b>Texte en gras</b></p><ul><li><a href="http://example.com">Ceci est un lien</a></li></ul>'
RICH_TEXT_TEST_OUTPUT = '<h1>Ceci est une rubrique</h1><p>Ceci est un paragraphe. &lt;foo&gt; <b>Texte en gras</b></p><ul><li><a href="http://example.fr">Ceci est un lien</a></li></ul>'


class TestSegmentIngestion(TestCase):
Expand Down

0 comments on commit 7b659a9

Please sign in to comment.