From 3c78b7ae27b43b0df47ff74986c5dce226ba1990 Mon Sep 17 00:00:00 2001 From: Walavouchey <36758269+Walavouchey@users.noreply.github.com> Date: Thu, 23 Nov 2023 16:57:35 +0100 Subject: [PATCH] add test cases for unquoted yaml in redirect parser --- tests/test_redirect_parser.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_redirect_parser.py b/tests/test_redirect_parser.py index 639272e..97e701a 100644 --- a/tests/test_redirect_parser.py +++ b/tests/test_redirect_parser.py @@ -14,6 +14,9 @@ def test__parse_redirects(self, tmpdir): "ignore_list": "Client/Options/Ignore_list" "ignore": "Client/Options/Ignore_list" + unquoted_key1: unquoted/value1 + "quoted_key": unquoted/value2 + unquoted_key2: "quoted/value" ''').strip()) redirects = redirect_parser.load_redirects(str(path)) @@ -22,4 +25,7 @@ def test__parse_redirects(self, tmpdir): 'asc/images': ('Article_Styling_Criteria#images', 4), 'ignore_list': ('Client/Options/Ignore_list', 6), 'ignore': ('Client/Options/Ignore_list', 7), + 'unquoted_key1': ('unquoted/value1', 8), + 'quoted_key': ('unquoted/value2', 9), + 'unquoted_key2': ('quoted/value', 10), }