From e6fceb49271811a5dbf927f3e3458956e3b3a104 Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 31 Mar 2021 21:48:45 +0100 Subject: [PATCH] Fixed markdown test The pygments rendering of invalid json changed in pygments>=2.7.3 --- tests/test_description.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tests/test_description.py b/tests/test_description.py index 9e7e4dc32..3b7d95e0a 100644 --- a/tests/test_description.py +++ b/tests/test_description.py @@ -26,7 +26,7 @@ indented ``` json [{ "alpha": 1, - "beta: "this is a string" + "beta": "this is a string" }] ```""" @@ -48,20 +48,18 @@ MARKDOWN_gte_33 = """
[{
\ "alpha":\ 1,
\ - "beta: "this\ - is a \ -string"
}]\ -
+ "beta":\ + "this is a string"
\ +}]


""" MARKDOWN_lt_33 = """
[{
\ "alpha":\ 1,
\ - "beta: "this\ - is a\ - string"
}]\ -
+ "beta":\ + "this is a string"
\ +}]


""" @@ -112,7 +110,7 @@ class TestViewNamesAndDescriptions(TestCase): ``` json [{ "alpha": 1, - "beta: "this is a string" + "beta": "this is a string" }] ```"""