{"action":"created","comment":{"url":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/comments/211086297","pull_request_review_id":147441740,"id":211086297,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTA4NjI5Nw==","diff_hunk":"@@ -0,0 +1,51 @@\n+from League.models import League, League_Member\n+from FantasyWeb.baseTest import BaseTestCase\n+\n+class LeagueMyTeamTestCase(BaseTestCase):\n+\tdef setUp(self):\n+\t\tself.response = None\n+\t\tself.test_url = \"/league/%s/my_team\" % self.league.pk\n+\n+\t\tself.login_user1()\n+\n+\tdef test001_league_my_team_without_login(self):\n+\t\t\"\"\"Tests how the server handles viewing the league my team screen without first logging in\"\"\"\n+\t\tself.add_league_member(self.user, self.league, \"team1\")\n+\t\tself.logout_user1()\n+\t\tself.helper_test_unauthenticated_page_access(self.test_url)\n+\n+\tdef test002_league_my_team_no_membership(self):\n+\t\t\"\"\"Tests how the server handles viewing the league my team screen without being a member\"\"\"\n+\t\tresponse = self.client.get(self.test_url, follow=True)\n+\t\tcontent = str(response.content)\n+\n+\t\tself.assertFalse('League: league_name1' in content)\n+\t\tself.assertTrue('Fantasy Web - Home' in content)\n+\n+\tdef test003_league_my_team_page_view(self):\n+\t\t\"\"\"Tests how the server handles viewing the league my team screen without being a member\"\"\"\n+\t\tself.add_league_member(self.user, self.league, \"team1\")\n+\t\t","path":"League/tests/test_league_my_team.py","position":28,"original_position":28,"commit_id":"d87fb3e93b87e8d74b5acb8511b0005909ef562a","original_commit_id":"d87fb3e93b87e8d74b5acb8511b0005909ef562a","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Trailing whitespace](https://app.codacy.com/app/drewkowalski93/FantasyWeb/pullRequest?prid=2063097)","created_at":"2018-08-18T21:42:25Z","updated_at":"2018-08-18T21:42:25Z","html_url":"https://github.com/DBN16CO/FantasyWeb/pull/6#discussion_r211086297","pull_request_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/comments/211086297"},"html":{"href":"https://github.com/DBN16CO/FantasyWeb/pull/6#discussion_r211086297"},"pull_request":{"href":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/6","id":209331764,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MzMxNzY0","html_url":"https://github.com/DBN16CO/FantasyWeb/pull/6","diff_url":"https://github.com/DBN16CO/FantasyWeb/pull/6.diff","patch_url":"https://github.com/DBN16CO/FantasyWeb/pull/6.patch","issue_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/issues/6","number":6,"state":"open","locked":false,"title":"Initial League Detail Pages","user":{"login":"akkowal2","id":1037095,"node_id":"MDQ6VXNlcjEwMzcwOTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1037095?v=4","gravatar_id":"","url":"https://api.github.com/users/akkowal2","html_url":"https://github.com/akkowal2","followers_url":"https://api.github.com/users/akkowal2/followers","following_url":"https://api.github.com/users/akkowal2/following{/other_user}","gists_url":"https://api.github.com/users/akkowal2/gists{/gist_id}","starred_url":"https://api.github.com/users/akkowal2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akkowal2/subscriptions","organizations_url":"https://api.github.com/users/akkowal2/orgs","repos_url":"https://api.github.com/users/akkowal2/repos","events_url":"https://api.github.com/users/akkowal2/events{/privacy}","received_events_url":"https://api.github.com/users/akkowal2/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-18T21:40:35Z","updated_at":"2018-08-18T21:42:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10b333ca240e6c5b3d8916929b3075ac457f3df6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"DaBernMon","id":6709325,"node_id":"MDQ6VXNlcjY3MDkzMjU=","avatar_url":"https://avatars0.githubusercontent.com/u/6709325?v=4","gravatar_id":"","url":"https://api.github.com/users/DaBernMon","html_url":"https://github.com/DaBernMon","followers_url":"https://api.github.com/users/DaBernMon/followers","following_url":"https://api.github.com/users/DaBernMon/following{/other_user}","gists_url":"https://api.github.com/users/DaBernMon/gists{/gist_id}","starred_url":"https://api.github.com/users/DaBernMon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaBernMon/subscriptions","organizations_url":"https://api.github.com/users/DaBernMon/orgs","repos_url":"https://api.github.com/users/DaBernMon/repos","events_url":"https://api.github.com/users/DaBernMon/events{/privacy}","received_events_url":"https://api.github.com/users/DaBernMon/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/6/commits","review_comments_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/6/comments","review_comment_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/issues/6/comments","statuses_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/statuses/d87fb3e93b87e8d74b5acb8511b0005909ef562a","head":{"label":"DBN16CO:league-page","ref":"league-page","sha":"d87fb3e93b87e8d74b5acb8511b0005909ef562a","user":{"login":"DBN16CO","id":23013785,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDEzNzg1","avatar_url":"https://avatars1.githubusercontent.com/u/23013785?v=4","gravatar_id":"","url":"https://api.github.com/users/DBN16CO","html_url":"https://github.com/DBN16CO","followers_url":"https://api.github.com/users/DBN16CO/followers","following_url":"https://api.github.com/users/DBN16CO/following{/other_user}","gists_url":"https://api.github.com/users/DBN16CO/gists{/gist_id}","starred_url":"https://api.github.com/users/DBN16CO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DBN16CO/subscriptions","organizations_url":"https://api.github.com/users/DBN16CO/orgs","repos_url":"https://api.github.com/users/DBN16CO/repos","events_url":"https://api.github.com/users/DBN16CO/events{/privacy}","received_events_url":"https://api.github.com/users/DBN16CO/received_events","type":"Organization","site_admin":false},"repo":{"id":144334069,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQzMzQwNjk=","name":"FantasyWeb","full_name":"DBN16CO/FantasyWeb","owner":{"login":"DBN16CO","id":23013785,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDEzNzg1","avatar_url":"https://avatars1.githubusercontent.com/u/23013785?v=4","gravatar_id":"","url":"https://api.github.com/users/DBN16CO","html_url":"https://github.com/DBN16CO","followers_url":"https://api.github.com/users/DBN16CO/followers","following_url":"https://api.github.com/users/DBN16CO/following{/other_user}","gists_url":"https://api.github.com/users/DBN16CO/gists{/gist_id}","starred_url":"https://api.github.com/users/DBN16CO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DBN16CO/subscriptions","organizations_url":"https://api.github.com/users/DBN16CO/orgs","repos_url":"https://api.github.com/users/DBN16CO/repos","events_url":"https://api.github.com/users/DBN16CO/events{/privacy}","received_events_url":"https://api.github.com/users/DBN16CO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DBN16CO/FantasyWeb","description":"Website for more involved fantasy football leagues","fork":false,"url":"https://api.github.com/repos/DBN16CO/FantasyWeb","forks_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/forks","keys_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/teams","hooks_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/hooks","issue_events_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/issues/events{/number}","events_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/events","assignees_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/assignees{/user}","branches_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/branches{/branch}","tags_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/tags","blobs_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/git/refs{/sha}","trees_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/statuses/{sha}","languages_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/languages","stargazers_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/stargazers","contributors_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/contributors","subscribers_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/subscribers","subscription_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/subscription","commits_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/commits{/sha}","git_commits_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/git/commits{/sha}","comments_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/comments{/number}","issue_comment_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/issues/comments{/number}","contents_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/contents/{+path}","compare_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/merges","archive_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/downloads","issues_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/issues{/number}","pulls_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls{/number}","milestones_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/milestones{/number}","notifications_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/labels{/name}","releases_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/releases{/id}","deployments_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/deployments","created_at":"2018-08-10T21:32:53Z","updated_at":"2018-08-17T04:01:29Z","pushed_at":"2018-08-18T21:40:36Z","git_url":"git://github.com/DBN16CO/FantasyWeb.git","ssh_url":"git@github.com:DBN16CO/FantasyWeb.git","clone_url":"https://github.com/DBN16CO/FantasyWeb.git","svn_url":"https://github.com/DBN16CO/FantasyWeb","homepage":null,"size":1703,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DBN16CO:master","ref":"master","sha":"cc3e758bcb98dfce44fb019bab439eb0294c5608","user":{"login":"DBN16CO","id":23013785,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDEzNzg1","avatar_url":"https://avatars1.githubusercontent.com/u/23013785?v=4","gravatar_id":"","url":"https://api.github.com/users/DBN16CO","html_url":"https://github.com/DBN16CO","followers_url":"https://api.github.com/users/DBN16CO/followers","following_url":"https://api.github.com/users/DBN16CO/following{/other_user}","gists_url":"https://api.github.com/users/DBN16CO/gists{/gist_id}","starred_url":"https://api.github.com/users/DBN16CO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DBN16CO/subscriptions","organizations_url":"https://api.github.com/users/DBN16CO/orgs","repos_url":"https://api.github.com/users/DBN16CO/repos","events_url":"https://api.github.com/users/DBN16CO/events{/privacy}","received_events_url":"https://api.github.com/users/DBN16CO/received_events","type":"Organization","site_admin":false},"repo":{"id":144334069,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQzMzQwNjk=","name":"FantasyWeb","full_name":"DBN16CO/FantasyWeb","owner":{"login":"DBN16CO","id":23013785,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDEzNzg1","avatar_url":"https://avatars1.githubusercontent.com/u/23013785?v=4","gravatar_id":"","url":"https://api.github.com/users/DBN16CO","html_url":"https://github.com/DBN16CO","followers_url":"https://api.github.com/users/DBN16CO/followers","following_url":"https://api.github.com/users/DBN16CO/following{/other_user}","gists_url":"https://api.github.com/users/DBN16CO/gists{/gist_id}","starred_url":"https://api.github.com/users/DBN16CO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DBN16CO/subscriptions","organizations_url":"https://api.github.com/users/DBN16CO/orgs","repos_url":"https://api.github.com/users/DBN16CO/repos","events_url":"https://api.github.com/users/DBN16CO/events{/privacy}","received_events_url":"https://api.github.com/users/DBN16CO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DBN16CO/FantasyWeb","description":"Website for more involved fantasy football leagues","fork":false,"url":"https://api.github.com/repos/DBN16CO/FantasyWeb","forks_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/forks","keys_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/teams","hooks_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/hooks","issue_events_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/issues/events{/number}","events_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/events","assignees_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/assignees{/user}","branches_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/branches{/branch}","tags_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/tags","blobs_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/git/refs{/sha}","trees_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/statuses/{sha}","languages_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/languages","stargazers_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/stargazers","contributors_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/contributors","subscribers_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/subscribers","subscription_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/subscription","commits_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/commits{/sha}","git_commits_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/git/commits{/sha}","comments_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/comments{/number}","issue_comment_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/issues/comments{/number}","contents_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/contents/{+path}","compare_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/merges","archive_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/downloads","issues_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/issues{/number}","pulls_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls{/number}","milestones_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/milestones{/number}","notifications_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/labels{/name}","releases_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/releases{/id}","deployments_url":"https://api.github.com/repos/DBN16CO/FantasyWeb/deployments","created_at":"2018-08-10T21:32:53Z","updated_at":"2018-08-17T04:01:29Z","pushed_at":"2018-08-18T21:40:36Z","git_url":"git://github.com/DBN16CO/FantasyWeb.git","ssh_url":"git@github.com:DBN16CO/FantasyWeb.git","clone_url":"https://github.com/DBN16CO/FantasyWeb.git","svn_url":"https://github.com/DBN16CO/FantasyWeb","homepage":null,"size":1703,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/6"},"html":{"href":"https://github.com/DBN16CO/FantasyWeb/pull/6"},"issue":{"href":"https://api.github.com/repos/DBN16CO/FantasyWeb/issues/6"},"comments":{"href":"https://api.github.com/repos/DBN16CO/FantasyWeb/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DBN16CO/FantasyWeb/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/DBN16CO/FantasyWeb/statuses/d87fb3e93b87e8d74b5acb8511b0005909ef562a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codacy-bot"}}