mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 13:20:39 +08:00
fixed tests
This commit is contained in:
@ -232,7 +232,7 @@ class PRDescription:
|
|||||||
if 'walkthrough' in key.lower():
|
if 'walkthrough' in key.lower():
|
||||||
# for filename, description in value.items():
|
# for filename, description in value.items():
|
||||||
if self.git_provider.is_supported("gfm_markdown"):
|
if self.git_provider.is_supported("gfm_markdown"):
|
||||||
pr_body += "<details> <summary>files:</summary>\n"
|
pr_body += "<details> <summary>files:</summary>\n\n"
|
||||||
for file in value:
|
for file in value:
|
||||||
filename = file['filename'].replace("'", "`")
|
filename = file['filename'].replace("'", "`")
|
||||||
description = file['changes in file']
|
description = file['changes in file']
|
||||||
|
@ -61,7 +61,7 @@ class TestSortFilesByMainLanguages:
|
|||||||
type('', (object,), {'filename': 'file1.py'})(),
|
type('', (object,), {'filename': 'file1.py'})(),
|
||||||
type('', (object,), {'filename': 'file2.java'})()
|
type('', (object,), {'filename': 'file2.java'})()
|
||||||
]
|
]
|
||||||
expected_output = [{'language': 'Other', 'files': []}]
|
expected_output = [{'language': 'Other', 'files': files}]
|
||||||
assert sort_files_by_main_languages(languages, files) == expected_output
|
assert sort_files_by_main_languages(languages, files) == expected_output
|
||||||
|
|
||||||
# Tests that function handles empty files list
|
# Tests that function handles empty files list
|
||||||
|
Reference in New Issue
Block a user