From 658b017c5ed93704bdb31bd906d3584eaf141481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Thu, 29 Dec 2022 17:35:09 +0000 Subject: [PATCH] test(api): Add test for link rendering Part-of: --- api/tests/common/test_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/tests/common/test_utils.py b/api/tests/common/test_utils.py index 3914017f1..10eff9810 100644 --- a/api/tests/common/test_utils.py +++ b/api/tests/common/test_utils.py @@ -134,6 +134,13 @@ def test_join_url(start, end, expected): True, '

hello world

', ), + # Links should render with their href intact + ( + "hello world\n[link](src)", + "text/markdown", + False, + '

hello world
link

', + ), ], ) def test_render_html(text, content_type, permissive, expected):