From b4ae07bf82de97c11ba8e0502ce98e29e8101af3 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Sat, 17 May 2025 20:58:32 +0300 Subject: [PATCH] Remove test case for YAML parsing that removes last line --- tests/unittest/test_try_fix_yaml.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/unittest/test_try_fix_yaml.py b/tests/unittest/test_try_fix_yaml.py index 336c4af5..826d7312 100644 --- a/tests/unittest/test_try_fix_yaml.py +++ b/tests/unittest/test_try_fix_yaml.py @@ -32,11 +32,6 @@ age: 35 expected_output = {'name': 'John Smith', 'age': 35} assert try_fix_yaml(review_text) == expected_output - # The function removes the last line(s) of the YAML string and successfully parses the YAML string. - def test_remove_last_line(self): - review_text = "key: value\nextra invalid line\n" - expected_output = {"key": "value"} - assert try_fix_yaml(review_text) == expected_output # The YAML string is empty. def test_empty_yaml_fixed(self):