Commit 1d802915 authored by Georg Krause's avatar Georg Krause
Browse files

Fix test cases

parent 2173a592
Pipeline #15982 passed with stages
in 9 minutes and 54 seconds
......@@ -684,8 +684,8 @@ def test_rss_feed_item_serializer_create(factories):
)
assert upload.track.get_tags() == ["pop", "rock"]
assert upload.track.attachment_cover.url == "https://image.url/"
assert upload.track.description.text == "<p>Html content</p>"
assert upload.track.description.content_type == "text/html"
assert upload.track.description.text == "Html content"
assert upload.track.description.content_type == "text/plain"
def test_rss_feed_item_serializer_update(factories):
......@@ -754,8 +754,8 @@ def test_rss_feed_item_serializer_update(factories):
)
assert upload.track.get_tags() == ["pop", "rock"]
assert upload.track.attachment_cover.url == "https://image.url/"
assert upload.track.description.text == "<p>Html content</p>"
assert upload.track.description.content_type == "text/html"
assert upload.track.description.text == "Html content"
assert upload.track.description.content_type == "text/plain"
def test_get_channel_from_rss_url(db, r_mock, mocker):
......
......@@ -114,7 +114,7 @@ def test_join_url(start, end, expected):
"<strong>hello world</strong>",
),
# images and other non whitelisted html should be removed
("hello world\n![img](src)", "text/markdown", False, "<p>hello world</p>"),
("hello world\n![img](src)", "text/markdown", False, "<p>hello world<br></p>"),
(
"hello world\n\n<script></script>\n\n<style></style>",
"text/markdown",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment