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