From b001b8cb2c3da414bb075c42e0c27a4ce70135bf Mon Sep 17 00:00:00 2001 From: David Smith Date: Sun, 11 Oct 2020 07:29:43 +0100 Subject: [PATCH] Bumped Markdown version to version 3.3 --- tests/test_description.py | 57 +++++++++------------------------------ 1 file changed, 13 insertions(+), 44 deletions(-) diff --git a/tests/test_description.py b/tests/test_description.py index ae00fe4a9..76378f175 100644 --- a/tests/test_description.py +++ b/tests/test_description.py @@ -1,3 +1,4 @@ +import pytest from django.test import TestCase from rest_framework.compat import apply_markdown @@ -30,36 +31,7 @@ indented # If markdown is installed we also test it's working # (and that our wrapped forces '=' to h2 and '-' to h3) -MARKED_DOWN_HILITE = """ -
[{
"alpha": 1,
\ - "beta: "this\ - is a \ -string"
}]
- -


""" - -MARKED_DOWN_NOT_HILITE = """ -

json -[{ - "alpha": 1, - "beta: "this is a string" -}]

""" - -# We support markdown < 2.1 and markdown >= 2.1 -MARKED_DOWN_lt_21 = """

an example docstring

- -

another header

-
code block
-
-

indented

-

hash style header

%s""" - -MARKED_DOWN_gte_21 = """

an example docstring

+MARKED_DOWN_HILITE = """

an example docstring