mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Remove test case for YAML parsing that removes last line
This commit is contained in:
parent
db5138dc42
commit
b4ae07bf82
1 changed files with 0 additions and 5 deletions
|
|
@ -32,11 +32,6 @@ age: 35
|
||||||
expected_output = {'name': 'John Smith', 'age': 35}
|
expected_output = {'name': 'John Smith', 'age': 35}
|
||||||
assert try_fix_yaml(review_text) == expected_output
|
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.
|
# The YAML string is empty.
|
||||||
def test_empty_yaml_fixed(self):
|
def test_empty_yaml_fixed(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue