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):