We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abe7e8d commit 7d2b950Copy full SHA for 7d2b950
tests/test_views.py
@@ -22,7 +22,9 @@ def test_preview_renders_html(self):
22
23
self.assertEqual(self.snippet.html, "<h1>Test Title</h1><br><p>Test paragraph</p>")
24
self.assertEqual(response.status_code, 200)
25
- self.assertContains(response, "<h1>Test Title</h1><br><p>Test paragraph</p>")
+ # Removing html escaping, means the content is rendered including the tags on the page, but also means that the
26
+ # response will contain character entity references.
27
+ self.assertContains(response, "<h1>Test Title</h1><br><p>Test paragraph</p>")
28
29
def test_preview_raises_404_no_snippet(self):
30
"""
0 commit comments