diff --git a/cli.py b/cli.py index 8437002..b4bae77 100644 --- a/cli.py +++ b/cli.py @@ -34,7 +34,7 @@ class GHub: def main(): - gh = GHub(user_name="mkb79", repo_name="audible-cli") + gh = GHub(user_name="tyrelsouza", repo_name="work_sample") # pprint(gh.schema()) pprint( ( diff --git a/tests/repo.json b/tests/repo.json index 6aa2456..e13c4b8 100644 --- a/tests/repo.json +++ b/tests/repo.json @@ -1 +1,107 @@ -{"id": 228900091, "node_id": "MDEwOlJlcG9zaXRvcnkyMjg5MDAwOTE=", "name": "work_sample", "full_name": "tyrelsouza/work_sample", "private": false, "owner": {"login": "tyrelsouza", "id": 923113, "node_id": "MDQ6VXNlcjkyMzExMw==", "avatar_url": "https://avatars.githubusercontent.com/u/923113?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tyrelsouza", "html_url": "https://github.com/tyrelsouza", "followers_url": "https://api.github.com/users/tyrelsouza/followers", "following_url": "https://api.github.com/users/tyrelsouza/following{/other_user}", "gists_url": "https://api.github.com/users/tyrelsouza/gists{/gist_id}", "starred_url": "https://api.github.com/users/tyrelsouza/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tyrelsouza/subscriptions", "organizations_url": "https://api.github.com/users/tyrelsouza/orgs", "repos_url": "https://api.github.com/users/tyrelsouza/repos", "events_url": "https://api.github.com/users/tyrelsouza/events{/privacy}", "received_events_url": "https://api.github.com/users/tyrelsouza/received_events", "type": "User", "site_admin": false}, "html_url": "https://github.com/tyrelsouza/work_sample", "description": "i need a public repo for work.", "fork": false, "url": "https://api.github.com/repos/tyrelsouza/work_sample", "forks_url": "https://api.github.com/repos/tyrelsouza/work_sample/forks", "keys_url": "https://api.github.com/repos/tyrelsouza/work_sample/keys{/key_id}", "collaborators_url": "https://api.github.com/repos/tyrelsouza/work_sample/collaborators{/collaborator}", "teams_url": "https://api.github.com/repos/tyrelsouza/work_sample/teams", "hooks_url": "https://api.github.com/repos/tyrelsouza/work_sample/hooks", "issue_events_url": "https://api.github.com/repos/tyrelsouza/work_sample/issues/events{/number}", "events_url": "https://api.github.com/repos/tyrelsouza/work_sample/events", "assignees_url": "https://api.github.com/repos/tyrelsouza/work_sample/assignees{/user}", "branches_url": "https://api.github.com/repos/tyrelsouza/work_sample/branches{/branch}", "tags_url": "https://api.github.com/repos/tyrelsouza/work_sample/tags", "blobs_url": "https://api.github.com/repos/tyrelsouza/work_sample/git/blobs{/sha}", "git_tags_url": "https://api.github.com/repos/tyrelsouza/work_sample/git/tags{/sha}", "git_refs_url": "https://api.github.com/repos/tyrelsouza/work_sample/git/refs{/sha}", "trees_url": "https://api.github.com/repos/tyrelsouza/work_sample/git/trees{/sha}", "statuses_url": "https://api.github.com/repos/tyrelsouza/work_sample/statuses/{sha}", "languages_url": "https://api.github.com/repos/tyrelsouza/work_sample/languages", "stargazers_url": "https://api.github.com/repos/tyrelsouza/work_sample/stargazers", "contributors_url": "https://api.github.com/repos/tyrelsouza/work_sample/contributors", "subscribers_url": "https://api.github.com/repos/tyrelsouza/work_sample/subscribers", "subscription_url": "https://api.github.com/repos/tyrelsouza/work_sample/subscription", "commits_url": "https://api.github.com/repos/tyrelsouza/work_sample/commits{/sha}", "git_commits_url": "https://api.github.com/repos/tyrelsouza/work_sample/git/commits{/sha}", "comments_url": "https://api.github.com/repos/tyrelsouza/work_sample/comments{/number}", "issue_comment_url": "https://api.github.com/repos/tyrelsouza/work_sample/issues/comments{/number}", "contents_url": "https://api.github.com/repos/tyrelsouza/work_sample/contents/{+path}", "compare_url": "https://api.github.com/repos/tyrelsouza/work_sample/compare/{base}...{head}", "merges_url": "https://api.github.com/repos/tyrelsouza/work_sample/merges", "archive_url": "https://api.github.com/repos/tyrelsouza/work_sample/{archive_format}{/ref}", "downloads_url": "https://api.github.com/repos/tyrelsouza/work_sample/downloads", "issues_url": "https://api.github.com/repos/tyrelsouza/work_sample/issues{/number}", "pulls_url": "https://api.github.com/repos/tyrelsouza/work_sample/pulls{/number}", "milestones_url": "https://api.github.com/repos/tyrelsouza/work_sample/milestones{/number}", "notifications_url": "https://api.github.com/repos/tyrelsouza/work_sample/notifications{?since,all,participating}", "labels_url": "https://api.github.com/repos/tyrelsouza/work_sample/labels{/name}", "releases_url": "https://api.github.com/repos/tyrelsouza/work_sample/releases{/id}", "deployments_url": "https://api.github.com/repos/tyrelsouza/work_sample/deployments", "created_at": "2019-12-18T18:36:33Z", "updated_at": "2019-12-18T18:37:38Z", "pushed_at": "2019-12-18T18:37:36Z", "git_url": "git://github.com/tyrelsouza/work_sample.git", "ssh_url": "git@github.com:tyrelsouza/work_sample.git", "clone_url": "https://github.com/tyrelsouza/work_sample.git", "svn_url": "https://github.com/tyrelsouza/work_sample", "homepage": null, "size": 3, "stargazers_count": 0, "watchers_count": 0, "language": "Python", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": false, "forks_count": 0, "mirror_url": null, "archived": false, "disabled": false, "open_issues_count": 1, "license": {"key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz"}, "allow_forking": true, "is_template": false, "topics": [], "visibility": "public", "forks": 0, "open_issues": 1, "watchers": 0, "default_branch": "master", "temp_clone_token": null, "network_count": 0, "subscribers_count": 1} +{ + "id": 228900091, + "node_id": "MDEwOlJlcG9zaXRvcnkyMjg5MDAwOTE=", + "name": "work_sample", + "full_name": "tyrelsouza/work_sample", + "private": false, + "owner": { + "login": "tyrelsouza", + "id": 923113, + "node_id": "MDQ6VXNlcjkyMzExMw==", + "avatar_url": "https://avatars.githubusercontent.com/u/923113?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/tyrelsouza", + "html_url": "https://github.com/tyrelsouza", + "followers_url": "https://api.github.com/users/tyrelsouza/followers", + "following_url": "https://api.github.com/users/tyrelsouza/following{/other_user}", + "gists_url": "https://api.github.com/users/tyrelsouza/gists{/gist_id}", + "starred_url": "https://api.github.com/users/tyrelsouza/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/tyrelsouza/subscriptions", + "organizations_url": "https://api.github.com/users/tyrelsouza/orgs", + "repos_url": "https://api.github.com/users/tyrelsouza/repos", + "events_url": "https://api.github.com/users/tyrelsouza/events{/privacy}", + "received_events_url": "https://api.github.com/users/tyrelsouza/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/tyrelsouza/work_sample", + "description": "i need a public repo for work.", + "fork": false, + "url": "https://api.github.com/repos/tyrelsouza/work_sample", + "forks_url": "https://api.github.com/repos/tyrelsouza/work_sample/forks", + "keys_url": "https://api.github.com/repos/tyrelsouza/work_sample/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/tyrelsouza/work_sample/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/tyrelsouza/work_sample/teams", + "hooks_url": "https://api.github.com/repos/tyrelsouza/work_sample/hooks", + "issue_events_url": "https://api.github.com/repos/tyrelsouza/work_sample/issues/events{/number}", + "events_url": "https://api.github.com/repos/tyrelsouza/work_sample/events", + "assignees_url": "https://api.github.com/repos/tyrelsouza/work_sample/assignees{/user}", + "branches_url": "https://api.github.com/repos/tyrelsouza/work_sample/branches{/branch}", + "tags_url": "https://api.github.com/repos/tyrelsouza/work_sample/tags", + "blobs_url": "https://api.github.com/repos/tyrelsouza/work_sample/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/tyrelsouza/work_sample/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/tyrelsouza/work_sample/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/tyrelsouza/work_sample/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/tyrelsouza/work_sample/statuses/{sha}", + "languages_url": "https://api.github.com/repos/tyrelsouza/work_sample/languages", + "stargazers_url": "https://api.github.com/repos/tyrelsouza/work_sample/stargazers", + "contributors_url": "https://api.github.com/repos/tyrelsouza/work_sample/contributors", + "subscribers_url": "https://api.github.com/repos/tyrelsouza/work_sample/subscribers", + "subscription_url": "https://api.github.com/repos/tyrelsouza/work_sample/subscription", + "commits_url": "https://api.github.com/repos/tyrelsouza/work_sample/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/tyrelsouza/work_sample/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/tyrelsouza/work_sample/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/tyrelsouza/work_sample/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/tyrelsouza/work_sample/contents/{+path}", + "compare_url": "https://api.github.com/repos/tyrelsouza/work_sample/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/tyrelsouza/work_sample/merges", + "archive_url": "https://api.github.com/repos/tyrelsouza/work_sample/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/tyrelsouza/work_sample/downloads", + "issues_url": "https://api.github.com/repos/tyrelsouza/work_sample/issues{/number}", + "pulls_url": "https://api.github.com/repos/tyrelsouza/work_sample/pulls{/number}", + "milestones_url": "https://api.github.com/repos/tyrelsouza/work_sample/milestones{/number}", + "notifications_url": "https://api.github.com/repos/tyrelsouza/work_sample/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/tyrelsouza/work_sample/labels{/name}", + "releases_url": "https://api.github.com/repos/tyrelsouza/work_sample/releases{/id}", + "deployments_url": "https://api.github.com/repos/tyrelsouza/work_sample/deployments", + "created_at": "2019-12-18T18:36:33Z", + "updated_at": "2019-12-18T18:37:38Z", + "pushed_at": "2019-12-18T18:37:36Z", + "git_url": "git://github.com/tyrelsouza/work_sample.git", + "ssh_url": "git@github.com:tyrelsouza/work_sample.git", + "clone_url": "https://github.com/tyrelsouza/work_sample.git", + "svn_url": "https://github.com/tyrelsouza/work_sample", + "homepage": null, + "size": 3, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Python", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "master", + "temp_clone_token": null, + "network_count": 0, + "subscribers_count": 1 +} diff --git a/tests/user.json b/tests/user.json index 228ad6a..1f2e99d 100644 --- a/tests/user.json +++ b/tests/user.json @@ -1 +1,34 @@ -{"login": "tyrelsouza", "id": 923113, "node_id": "MDQ6VXNlcjkyMzExMw==", "avatar_url": "https://avatars.githubusercontent.com/u/923113?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tyrelsouza", "html_url": "https://github.com/tyrelsouza", "followers_url": "https://api.github.com/users/tyrelsouza/followers", "following_url": "https://api.github.com/users/tyrelsouza/following{/other_user}", "gists_url": "https://api.github.com/users/tyrelsouza/gists{/gist_id}", "starred_url": "https://api.github.com/users/tyrelsouza/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tyrelsouza/subscriptions", "organizations_url": "https://api.github.com/users/tyrelsouza/orgs", "repos_url": "https://api.github.com/users/tyrelsouza/repos", "events_url": "https://api.github.com/users/tyrelsouza/events{/privacy}", "received_events_url": "https://api.github.com/users/tyrelsouza/received_events", "type": "User", "site_admin": false, "name": "Tyrel Souza", "company": "@tidelift @librariesio", "blog": "https://tidelift.com", "location": "Chapel Hill, NC", "email": null, "hireable": null, "bio": "I have a job. I write code for it. Any sponsorships are my own, and not endorsed by my employer. I disagree with Badges and Achievements.", "twitter_username": "tyrelsouza", "public_repos": 10, "public_gists": 34, "followers": 43, "following": 30, "created_at": "2011-07-18T15:04:40Z", "updated_at": "2021-10-12T05:33:35Z"} +{ + "login": "tyrelsouza", + "id": 923113, + "node_id": "MDQ6VXNlcjkyMzExMw==", + "avatar_url": "https://avatars.githubusercontent.com/u/923113?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/tyrelsouza", + "html_url": "https://github.com/tyrelsouza", + "followers_url": "https://api.github.com/users/tyrelsouza/followers", + "following_url": "https://api.github.com/users/tyrelsouza/following{/other_user}", + "gists_url": "https://api.github.com/users/tyrelsouza/gists{/gist_id}", + "starred_url": "https://api.github.com/users/tyrelsouza/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/tyrelsouza/subscriptions", + "organizations_url": "https://api.github.com/users/tyrelsouza/orgs", + "repos_url": "https://api.github.com/users/tyrelsouza/repos", + "events_url": "https://api.github.com/users/tyrelsouza/events{/privacy}", + "received_events_url": "https://api.github.com/users/tyrelsouza/received_events", + "type": "User", + "site_admin": false, + "name": "Tyrel Souza", + "company": "@tidelift @librariesio", + "blog": "https://tidelift.com", + "location": "Chapel Hill, NC", + "email": null, + "hireable": null, + "bio": "I have a job. I write code for it. Any sponsorships are my own, and not endorsed by my employer. I disagree with Badges and Achievements.", + "twitter_username": "tyrelsouza", + "public_repos": 10, + "public_gists": 34, + "followers": 43, + "following": 30, + "created_at": "2011-07-18T15:04:40Z", + "updated_at": "2021-10-12T05:33:35Z" +}