Store link between handled issue and created pull request in database #79
|
@ -32,7 +32,7 @@ class TestSolveIssueInRepository:
|
||||||
):
|
):
|
||||||
# Setup mocks
|
# Setup mocks
|
||||||
mock_run_cmd.return_value = True
|
mock_run_cmd.return_value = True
|
||||||
mock_push_changes.return_value = True
|
mock_push_changes.return_value = (True, '456', 'https://gitea.example.com/test-owner/test-repo/pulls/456')
|
||||||
|
|
||||||
# Mock subprocess.run to return different commit hashes and file changes
|
# Mock subprocess.run to return different commit hashes and file changes
|
||||||
mock_subprocess_run.side_effect = [
|
mock_subprocess_run.side_effect = [
|
||||||
|
@ -72,6 +72,7 @@ class TestSolveIssueInRepository:
|
||||||
):
|
):
|
||||||
# Setup mocks
|
# Setup mocks
|
||||||
mock_run_cmd.return_value = True
|
mock_run_cmd.return_value = True
|
||||||
|
mock_push_changes.return_value = (False, None, None)
|
||||||
|
|
||||||
# Mock subprocess.run to return same commit hash and no file changes
|
# Mock subprocess.run to return same commit hash and no file changes
|
||||||
mock_subprocess_run.side_effect = [
|
mock_subprocess_run.side_effect = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user