From b2c067096ed5381eb28be73e5e712cff2fa82fdd Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Fri, 14 Feb 2020 08:26:01 +0100 Subject: [PATCH] Additional test --- tests/test_cell_metadata.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_cell_metadata.py b/tests/test_cell_metadata.py index 0a86ce26d..8a79d1cbb 100644 --- a/tests/test_cell_metadata.py +++ b/tests/test_cell_metadata.py @@ -164,3 +164,8 @@ def test_values_with_equal_signs_inside(text='python string="value=5"', def test_incorrectly_encoded(text="this is an incorrect expression d={{4 b=3"): value = text_to_metadata(text, allow_title=True) assert metadata_to_text(*value) == text + + +def test_incorrectly_encoded_json(text='this is an incorrect expression {"d": "}'): + value = text_to_metadata(text, allow_title=True) + assert metadata_to_text(*value) == text