mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 11:50:37 +08:00
Update test class name and adjust patch extra lines configuration
- Renamed test class to `TestExtendedPatchMoreLines` in `test_extend_patch.py` - Imported `pr_generate_extended_diff` in `test_extend_patch.py` - Updated `patch_extra_lines_before` to 4 in `additional_configurations.md`
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import pytest
|
||||
from pr_agent.algo.git_patch_processing import extend_patch
|
||||
from pr_agent.algo.pr_processing import pr_generate_extended_diff
|
||||
from pr_agent.algo.token_handler import TokenHandler
|
||||
|
||||
|
||||
@ -60,7 +61,7 @@ class TestExtendPatch:
|
||||
assert actual_output == expected_output
|
||||
|
||||
|
||||
class PRProcessingTest:
|
||||
class TestExtendedPatchMoreLines:
|
||||
class File:
|
||||
def __init__(self, base_file, patch, filename):
|
||||
self.base_file = base_file
|
||||
|
Reference in New Issue
Block a user