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:
mrT23
2024-08-11 11:29:31 +03:00
parent 5701816b2e
commit 2b2b851cb9
2 changed files with 3 additions and 2 deletions

View File

@ -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