-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: adds test with RequestsMock for create_pull_request unit tests (…
…#99) * test: add test with RequestsMock for create_pull_request in test_gitlab.py Signed-off-by: Jennifer Power <[email protected]> * docs: update E2E test docs Signed-off-by: Jennifer Power <[email protected]> * test: adds JSON test data for example GitHub API responses Signed-off-by: Jennifer Power <[email protected]> * test: add test with RequestsMock for create_pull_request in test_github.py Signed-off-by: Jennifer Power <[email protected]> * fix: removes regexp for urls in test_gitlab.py and test_github.py files Signed-off-by: Jennifer Power <[email protected]> --------- Signed-off-by: Jennifer Power <[email protected]>
- Loading branch information
Showing
7 changed files
with
595 additions
and
51 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"id": 654286523, | ||
"node_id": "R_kgDOJv-euw", | ||
"name": "repo", | ||
"full_name": "owner/repo", | ||
"private": false, | ||
"owner": { | ||
"login": "owner", | ||
"id": 8826520, | ||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjg4MjY1MjA=", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/8826520?v=4", | ||
"gravatar_id": "", | ||
"url": "https://api.github.com/users/owner", | ||
"html_url": "https://github.com/owner", | ||
"followers_url": "https://api.github.com/users/owner/followers", | ||
"following_url": "https://api.github.com/users/owner/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/owner/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/owner/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/owner/subscriptions", | ||
"organizations_url": "https://api.github.com/users/owner/orgs", | ||
"repos_url": "https://api.github.com/users/owner/repos", | ||
"events_url": "https://api.github.com/users/owner/events{/privacy}", | ||
"received_events_url": "https://api.github.com/users/owner/received_events", | ||
"type": "Organization", | ||
"site_admin": false | ||
}, | ||
"html_url": "https://github.com/owner/repo", | ||
"description": "An example project", | ||
"fork": false, | ||
"url": "https://api.github.com/repos/owner/repo", | ||
"forks_url": "https://api.github.com/repos/owner/repo/forks", | ||
"keys_url": "https://api.github.com/repos/owner/repo/keys{/key_id}", | ||
"collaborators_url": "https://api.github.com/repos/owner/repo/collaborators{/collaborator}", | ||
"teams_url": "https://api.github.com/repos/owner/repo/teams", | ||
"hooks_url": "https://api.github.com/repos/owner/repo/hooks", | ||
"issue_events_url": "https://api.github.com/repos/owner/repo/issues/events{/number}", | ||
"events_url": "https://api.github.com/repos/owner/repo/events", | ||
"assignees_url": "https://api.github.com/repos/owner/repo/assignees{/user}", | ||
"branches_url": "https://api.github.com/repos/owner/repo/branches{/branch}", | ||
"tags_url": "https://api.github.com/repos/owner/repo/tags", | ||
"blobs_url": "https://api.github.com/repos/owner/repo/git/blobs{/sha}", | ||
"git_tags_url": "https://api.github.com/repos/owner/repo/git/tags{/sha}", | ||
"git_refs_url": "https://api.github.com/repos/owner/repo/git/refs{/sha}", | ||
"trees_url": "https://api.github.com/repos/owner/repo/git/trees{/sha}", | ||
"statuses_url": "https://api.github.com/repos/owner/repo/statuses/{sha}", | ||
"languages_url": "https://api.github.com/repos/owner/repo/languages", | ||
"stargazers_url": "https://api.github.com/repos/owner/repo/stargazers", | ||
"contributors_url": "https://api.github.com/repos/owner/repo/contributors", | ||
"subscribers_url": "https://api.github.com/repos/owner/repo/subscribers", | ||
"subscription_url": "https://api.github.com/repos/owner/repo/subscription", | ||
"commits_url": "https://api.github.com/repos/owner/repo/commits{/sha}", | ||
"git_commits_url": "https://api.github.com/repos/owner/repo/git/commits{/sha}", | ||
"comments_url": "https://api.github.com/repos/owner/repo/comments{/number}", | ||
"issue_comment_url": "https://api.github.com/repos/owner/repo/issues/comments{/number}", | ||
"contents_url": "https://api.github.com/repos/owner/repo/contents/{+path}", | ||
"compare_url": "https://api.github.com/repos/owner/repo/compare/{base}...{head}", | ||
"merges_url": "https://api.github.com/repos/owner/repo/merges", | ||
"archive_url": "https://api.github.com/repos/owner/repo/{archive_format}{/ref}", | ||
"downloads_url": "https://api.github.com/repos/owner/repo/downloads", | ||
"issues_url": "https://api.github.com/repos/owner/repo/issues{/number}", | ||
"pulls_url": "https://api.github.com/repos/owner/repo/pulls{/number}", | ||
"milestones_url": "https://api.github.com/repos/owner/repo/milestones{/number}", | ||
"notifications_url": "https://api.github.com/repos/owner/repo/notifications{?since,all,participating}", | ||
"labels_url": "https://api.github.com/repos/owner/repo/labels{/name}", | ||
"releases_url": "https://api.github.com/repos/owner/repo/releases{/id}", | ||
"deployments_url": "https://api.github.com/repos/owner/repo/deployments", | ||
"created_at": "2023-06-15T19:44:03Z", | ||
"updated_at": "2023-10-30T20:55:12Z", | ||
"pushed_at": "2023-12-07T15:36:41Z", | ||
"git_url": "git://github.com/owner/repo.git", | ||
"ssh_url": "[email protected]:owner/repo.git", | ||
"clone_url": "https://github.com/owner/repo.git", | ||
"svn_url": "https://github.com/owner/repo", | ||
"homepage": "", | ||
"size": 673, | ||
"stargazers_count": 4, | ||
"watchers_count": 4, | ||
"language": "Python", | ||
"has_issues": true, | ||
"has_projects": true, | ||
"has_downloads": true, | ||
"has_wiki": true, | ||
"has_pages": false, | ||
"has_discussions": true, | ||
"forks_count": 3, | ||
"mirror_url": null, | ||
"archived": false, | ||
"disabled": false, | ||
"open_issues_count": 10, | ||
"allow_forking": true, | ||
"is_template": false, | ||
"web_commit_signoff_required": false, | ||
"topics": [], | ||
"visibility": "public", | ||
"forks": 3, | ||
"open_issues": 10, | ||
"watchers": 4, | ||
"default_branch": "main", | ||
"permissions": {}, | ||
"allow_squash_merge": true, | ||
"allow_merge_commit": true, | ||
"allow_rebase_merge": true, | ||
"allow_auto_merge": true, | ||
"delete_branch_on_merge": false, | ||
"allow_update_branch": true, | ||
"use_squash_pr_title_as_default": false, | ||
"squash_merge_commit_message": "COMMIT_MESSAGES", | ||
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE", | ||
"merge_commit_message": "PR_TITLE", | ||
"merge_commit_title": "MERGE_MESSAGE", | ||
"network_count": 3, | ||
"subscribers_count": 6 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters