{"action":"created","comment":{"url":"https://api.github.com/repos/shoopio/shoop/pulls/comments/41002152","id":41002152,"diff_hunk":"@@ -34,12 +35,15 @@ def test_product_module_search(rf, admin_user):\n \n @pytest.mark.django_db\n def test_product_edit_view_works_at_all(rf, admin_user):\n-    get_default_shop()\n+    shop = get_default_shop()\n+    default_product = get_default_product()","path":"shoop_tests/admin/test_product_module.py","position":14,"original_position":14,"commit_id":"d4ba4c58d47024dc02e52d6b796e3a3639b36858","original_commit_id":"d4ba4c58d47024dc02e52d6b796e3a3639b36858","user":{"login":"akx","id":58669,"avatar_url":"https://avatars.githubusercontent.com/u/58669?v=3","gravatar_id":"","url":"https://api.github.com/users/akx","html_url":"https://github.com/akx","followers_url":"https://api.github.com/users/akx/followers","following_url":"https://api.github.com/users/akx/following{/other_user}","gists_url":"https://api.github.com/users/akx/gists{/gist_id}","starred_url":"https://api.github.com/users/akx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akx/subscriptions","organizations_url":"https://api.github.com/users/akx/orgs","repos_url":"https://api.github.com/users/akx/repos","events_url":"https://api.github.com/users/akx/events{/privacy}","received_events_url":"https://api.github.com/users/akx/received_events","type":"User","site_admin":false},"body":"As mentioned in :meat_on_bone: :space_invader: :\r\n\r\nIf you're going to mutate the visibility limit, it'd be better to create a new product for testing","created_at":"2015-10-02T08:53:26Z","updated_at":"2015-10-02T08:53:26Z","html_url":"https://github.com/shoopio/shoop/pull/198#discussion_r41002152","pull_request_url":"https://api.github.com/repos/shoopio/shoop/pulls/198","_links":{"self":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/comments/41002152"},"html":{"href":"https://github.com/shoopio/shoop/pull/198#discussion_r41002152"},"pull_request":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/198"}}},"pull_request":{"url":"https://api.github.com/repos/shoopio/shoop/pulls/198","id":46608733,"html_url":"https://github.com/shoopio/shoop/pull/198","diff_url":"https://github.com/shoopio/shoop/pull/198.diff","patch_url":"https://github.com/shoopio/shoop/pull/198.patch","issue_url":"https://api.github.com/repos/shoopio/shoop/issues/198","number":198,"state":"open","locked":false,"title":"Admin: Fix issue where visibility errors caused an error","user":{"login":"Pikkupomo","id":2863405,"avatar_url":"https://avatars.githubusercontent.com/u/2863405?v=3","gravatar_id":"","url":"https://api.github.com/users/Pikkupomo","html_url":"https://github.com/Pikkupomo","followers_url":"https://api.github.com/users/Pikkupomo/followers","following_url":"https://api.github.com/users/Pikkupomo/following{/other_user}","gists_url":"https://api.github.com/users/Pikkupomo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pikkupomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pikkupomo/subscriptions","organizations_url":"https://api.github.com/users/Pikkupomo/orgs","repos_url":"https://api.github.com/users/Pikkupomo/repos","events_url":"https://api.github.com/users/Pikkupomo/events{/privacy}","received_events_url":"https://api.github.com/users/Pikkupomo/received_events","type":"User","site_admin":false},"body":"Admin has no customer, therefore the visibility cannot be checked the same way\r\nas in frontend.\r\n\r\nSHOOP-1604","created_at":"2015-10-02T07:22:58Z","updated_at":"2015-10-02T08:53:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85be306d1fb38054e4dd0b9024f8713eea62fcf0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shoopio/shoop/pulls/198/commits","review_comments_url":"https://api.github.com/repos/shoopio/shoop/pulls/198/comments","review_comment_url":"https://api.github.com/repos/shoopio/shoop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shoopio/shoop/issues/198/comments","statuses_url":"https://api.github.com/repos/shoopio/shoop/statuses/d4ba4c58d47024dc02e52d6b796e3a3639b36858","head":{"label":"Pikkupomo:admin-no-customer","ref":"admin-no-customer","sha":"d4ba4c58d47024dc02e52d6b796e3a3639b36858","user":{"login":"Pikkupomo","id":2863405,"avatar_url":"https://avatars.githubusercontent.com/u/2863405?v=3","gravatar_id":"","url":"https://api.github.com/users/Pikkupomo","html_url":"https://github.com/Pikkupomo","followers_url":"https://api.github.com/users/Pikkupomo/followers","following_url":"https://api.github.com/users/Pikkupomo/following{/other_user}","gists_url":"https://api.github.com/users/Pikkupomo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pikkupomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pikkupomo/subscriptions","organizations_url":"https://api.github.com/users/Pikkupomo/orgs","repos_url":"https://api.github.com/users/Pikkupomo/repos","events_url":"https://api.github.com/users/Pikkupomo/events{/privacy}","received_events_url":"https://api.github.com/users/Pikkupomo/received_events","type":"User","site_admin":false},"repo":{"id":37525161,"name":"shoop","full_name":"Pikkupomo/shoop","owner":{"login":"Pikkupomo","id":2863405,"avatar_url":"https://avatars.githubusercontent.com/u/2863405?v=3","gravatar_id":"","url":"https://api.github.com/users/Pikkupomo","html_url":"https://github.com/Pikkupomo","followers_url":"https://api.github.com/users/Pikkupomo/followers","following_url":"https://api.github.com/users/Pikkupomo/following{/other_user}","gists_url":"https://api.github.com/users/Pikkupomo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pikkupomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pikkupomo/subscriptions","organizations_url":"https://api.github.com/users/Pikkupomo/orgs","repos_url":"https://api.github.com/users/Pikkupomo/repos","events_url":"https://api.github.com/users/Pikkupomo/events{/privacy}","received_events_url":"https://api.github.com/users/Pikkupomo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pikkupomo/shoop","description":"","fork":true,"url":"https://api.github.com/repos/Pikkupomo/shoop","forks_url":"https://api.github.com/repos/Pikkupomo/shoop/forks","keys_url":"https://api.github.com/repos/Pikkupomo/shoop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pikkupomo/shoop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pikkupomo/shoop/teams","hooks_url":"https://api.github.com/repos/Pikkupomo/shoop/hooks","issue_events_url":"https://api.github.com/repos/Pikkupomo/shoop/issues/events{/number}","events_url":"https://api.github.com/repos/Pikkupomo/shoop/events","assignees_url":"https://api.github.com/repos/Pikkupomo/shoop/assignees{/user}","branches_url":"https://api.github.com/repos/Pikkupomo/shoop/branches{/branch}","tags_url":"https://api.github.com/repos/Pikkupomo/shoop/tags","blobs_url":"https://api.github.com/repos/Pikkupomo/shoop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pikkupomo/shoop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pikkupomo/shoop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pikkupomo/shoop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pikkupomo/shoop/statuses/{sha}","languages_url":"https://api.github.com/repos/Pikkupomo/shoop/languages","stargazers_url":"https://api.github.com/repos/Pikkupomo/shoop/stargazers","contributors_url":"https://api.github.com/repos/Pikkupomo/shoop/contributors","subscribers_url":"https://api.github.com/repos/Pikkupomo/shoop/subscribers","subscription_url":"https://api.github.com/repos/Pikkupomo/shoop/subscription","commits_url":"https://api.github.com/repos/Pikkupomo/shoop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pikkupomo/shoop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pikkupomo/shoop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pikkupomo/shoop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pikkupomo/shoop/contents/{+path}","compare_url":"https://api.github.com/repos/Pikkupomo/shoop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pikkupomo/shoop/merges","archive_url":"https://api.github.com/repos/Pikkupomo/shoop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pikkupomo/shoop/downloads","issues_url":"https://api.github.com/repos/Pikkupomo/shoop/issues{/number}","pulls_url":"https://api.github.com/repos/Pikkupomo/shoop/pulls{/number}","milestones_url":"https://api.github.com/repos/Pikkupomo/shoop/milestones{/number}","notifications_url":"https://api.github.com/repos/Pikkupomo/shoop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pikkupomo/shoop/labels{/name}","releases_url":"https://api.github.com/repos/Pikkupomo/shoop/releases{/id}","created_at":"2015-06-16T11:06:34Z","updated_at":"2015-06-16T11:06:35Z","pushed_at":"2015-10-02T08:21:47Z","git_url":"git://github.com/Pikkupomo/shoop.git","ssh_url":"git@github.com:Pikkupomo/shoop.git","clone_url":"https://github.com/Pikkupomo/shoop.git","svn_url":"https://github.com/Pikkupomo/shoop","homepage":null,"size":4034,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"shoopio:master","ref":"master","sha":"ee736978ab2db479ca2317dc2a7e8ff62bdb53e2","user":{"login":"shoopio","id":12714852,"avatar_url":"https://avatars.githubusercontent.com/u/12714852?v=3","gravatar_id":"","url":"https://api.github.com/users/shoopio","html_url":"https://github.com/shoopio","followers_url":"https://api.github.com/users/shoopio/followers","following_url":"https://api.github.com/users/shoopio/following{/other_user}","gists_url":"https://api.github.com/users/shoopio/gists{/gist_id}","starred_url":"https://api.github.com/users/shoopio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoopio/subscriptions","organizations_url":"https://api.github.com/users/shoopio/orgs","repos_url":"https://api.github.com/users/shoopio/repos","events_url":"https://api.github.com/users/shoopio/events{/privacy}","received_events_url":"https://api.github.com/users/shoopio/received_events","type":"Organization","site_admin":false},"repo":{"id":36803364,"name":"shoop","full_name":"shoopio/shoop","owner":{"login":"shoopio","id":12714852,"avatar_url":"https://avatars.githubusercontent.com/u/12714852?v=3","gravatar_id":"","url":"https://api.github.com/users/shoopio","html_url":"https://github.com/shoopio","followers_url":"https://api.github.com/users/shoopio/followers","following_url":"https://api.github.com/users/shoopio/following{/other_user}","gists_url":"https://api.github.com/users/shoopio/gists{/gist_id}","starred_url":"https://api.github.com/users/shoopio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoopio/subscriptions","organizations_url":"https://api.github.com/users/shoopio/orgs","repos_url":"https://api.github.com/users/shoopio/repos","events_url":"https://api.github.com/users/shoopio/events{/privacy}","received_events_url":"https://api.github.com/users/shoopio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shoopio/shoop","description":"E-Commerce Platform","fork":false,"url":"https://api.github.com/repos/shoopio/shoop","forks_url":"https://api.github.com/repos/shoopio/shoop/forks","keys_url":"https://api.github.com/repos/shoopio/shoop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shoopio/shoop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shoopio/shoop/teams","hooks_url":"https://api.github.com/repos/shoopio/shoop/hooks","issue_events_url":"https://api.github.com/repos/shoopio/shoop/issues/events{/number}","events_url":"https://api.github.com/repos/shoopio/shoop/events","assignees_url":"https://api.github.com/repos/shoopio/shoop/assignees{/user}","branches_url":"https://api.github.com/repos/shoopio/shoop/branches{/branch}","tags_url":"https://api.github.com/repos/shoopio/shoop/tags","blobs_url":"https://api.github.com/repos/shoopio/shoop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shoopio/shoop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shoopio/shoop/git/refs{/sha}","trees_url":"https://api.github.com/repos/shoopio/shoop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shoopio/shoop/statuses/{sha}","languages_url":"https://api.github.com/repos/shoopio/shoop/languages","stargazers_url":"https://api.github.com/repos/shoopio/shoop/stargazers","contributors_url":"https://api.github.com/repos/shoopio/shoop/contributors","subscribers_url":"https://api.github.com/repos/shoopio/shoop/subscribers","subscription_url":"https://api.github.com/repos/shoopio/shoop/subscription","commits_url":"https://api.github.com/repos/shoopio/shoop/commits{/sha}","git_commits_url":"https://api.github.com/repos/shoopio/shoop/git/commits{/sha}","comments_url":"https://api.github.com/repos/shoopio/shoop/comments{/number}","issue_comment_url":"https://api.github.com/repos/shoopio/shoop/issues/comments{/number}","contents_url":"https://api.github.com/repos/shoopio/shoop/contents/{+path}","compare_url":"https://api.github.com/repos/shoopio/shoop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shoopio/shoop/merges","archive_url":"https://api.github.com/repos/shoopio/shoop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shoopio/shoop/downloads","issues_url":"https://api.github.com/repos/shoopio/shoop/issues{/number}","pulls_url":"https://api.github.com/repos/shoopio/shoop/pulls{/number}","milestones_url":"https://api.github.com/repos/shoopio/shoop/milestones{/number}","notifications_url":"https://api.github.com/repos/shoopio/shoop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shoopio/shoop/labels{/name}","releases_url":"https://api.github.com/repos/shoopio/shoop/releases{/id}","created_at":"2015-06-03T12:53:21Z","updated_at":"2015-10-01T07:59:40Z","pushed_at":"2015-10-02T08:21:48Z","git_url":"git://github.com/shoopio/shoop.git","ssh_url":"git@github.com:shoopio/shoop.git","clone_url":"https://github.com/shoopio/shoop.git","svn_url":"https://github.com/shoopio/shoop","homepage":"https://shoop.io","size":8488,"stargazers_count":159,"watchers_count":159,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":7,"forks":41,"open_issues":7,"watchers":159,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/198"},"html":{"href":"https://github.com/shoopio/shoop/pull/198"},"issue":{"href":"https://api.github.com/repos/shoopio/shoop/issues/198"},"comments":{"href":"https://api.github.com/repos/shoopio/shoop/issues/198/comments"},"review_comments":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/198/comments"},"review_comment":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shoopio/shoop/pulls/198/commits"},"statuses":{"href":"https://api.github.com/repos/shoopio/shoop/statuses/d4ba4c58d47024dc02e52d6b796e3a3639b36858"}}}}