mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 13:20:39 +08:00
test: modify test data to support multiple sub-PR themes with separate titles and relevant files
This commit is contained in:
@ -171,7 +171,13 @@ class TestConvertToMarkdown:
|
|||||||
'src/file1.py',
|
'src/file1.py',
|
||||||
'src/file2.py'
|
'src/file2.py'
|
||||||
],
|
],
|
||||||
'title': 'Split PR into smaller parts',
|
'title': 'Refactoring',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'relevant_files': [
|
||||||
|
'src/file3.py'
|
||||||
|
],
|
||||||
|
'title': 'Bug Fix',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -183,7 +189,32 @@ class TestConvertToMarkdown:
|
|||||||
Here are some key observations to aid the review process:
|
Here are some key observations to aid the review process:
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr><td>🔀 <strong>No multiple PR themes</strong>
|
<tr><td>🔀 <strong>Multiple PR themes</strong><br><br>
|
||||||
|
|
||||||
|
<details><summary>
|
||||||
|
Sub-PR theme: <b>Refactoring</b></summary>
|
||||||
|
|
||||||
|
___
|
||||||
|
|
||||||
|
Relevant files:
|
||||||
|
|
||||||
|
- src/file1.py
|
||||||
|
- src/file2.py
|
||||||
|
___
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details><summary>
|
||||||
|
Sub-PR theme: <b>Bug Fix</b></summary>
|
||||||
|
|
||||||
|
___
|
||||||
|
|
||||||
|
Relevant files:
|
||||||
|
|
||||||
|
- src/file3.py
|
||||||
|
___
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
Reference in New Issue
Block a user