Skip to content

Commit 551110c

Browse files
committed
fix tests
1 parent 81e618c commit 551110c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

patchwork/steps/PreparePR/PreparePR.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, inputs: dict):
1515
logger.warning("No modified files to prepare a PR for.")
1616

1717
issue_url = inputs.get("issue_url")
18-
self.header = inputs.get("header")
18+
self.header = inputs.get("pr_header")
1919
if self.header is None and issue_url is None:
2020
self.header = f"This pull request from patched fixes {len(self.modified_code_files)} issues."
2121
elif self.header is None and issue_url is not None:

tests/steps/test_PreparePR.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ def prepare_pr_instance():
1515
return PreparePR(inputs)
1616

1717

18-
def test_init_required_keys(prepare_pr_instance):
19-
assert prepare_pr_instance.required_keys == {"modified_code_files"}
20-
21-
2218
def test_init_inputs(prepare_pr_instance):
2319
assert prepare_pr_instance.modified_code_files == [
2420
{"path": "file1", "start_line": 1, "end_line": 2, "commit_message": "commit msg"},

0 commit comments

Comments
 (0)