kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Fix test cases
rodzic
2173a592a0
commit
1d8029155b
|
@ -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",
|
||||
|
|
Ładowanie…
Reference in New Issue