{"action":"created","comment":{"url":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/comments/145400181","pull_request_review_id":70193040,"id":145400181,"diff_hunk":"@@ -0,0 +1,136 @@\n+\n+from flask import json\n+\n+from app import app\n+from app.models import ShoppingListItem\n+from app.tests.v2.common_requests import CommonRequestsv2\n+\n+\n+class ShoppingListItemTestCase(CommonRequestsv2):\n+    \"\"\"This class represents the shopping list test case\"\"\"\n+\n+    def setUp(self):\n+        self.set_up_tests()\n+        CommonRequestsv2.set_up_user_account(self)\n+        CommonRequestsv2.set_up_authorized_route(self)\n+        CommonRequestsv2.set_up_shopping_list(self)\n+        CommonRequestsv2.set_up_shopping_list_item(self)\n+\n+    def test_api_can_get_all_shopping_list_items_invalid_list_id(self):\n+        \"\"\"Test API can get shopping lists (GET request).\"\"\"\n+\n+        with app.test_client() as client:\n+\n+            res = self.get_all_shopping_list_items(client, str(\"1a\"))\n+            the_list = json.loads(res.data)\n+\n+            self.assertEqual(res.status_code, 422)\n+            self.assertIn(\"error\", the_list)\n+\n+    def test_api_can_get_all_shopping_list_items_non_existent_list_id(self):\n+        \"\"\"Test API can get shopping lists (GET request).\"\"\"\n+\n+        with app.test_client() as client:\n+\n+            res = self.get_all_shopping_list_items(client, str(\"1a\"))\n+            the_list = json.loads(res.data)\n+\n+            self.assertEqual(res.status_code, 422)\n+            self.assertIn(\"error\", the_list)\n+\n+    def test_api_can_get_all_shopping_list_items(self):\n+        \"\"\"Test API can get shopping lists (GET request).\"\"\"\n+\n+        with app.test_client() as client:\n+            \n+            CommonRequestsv2.set_up_shopping_list_item(self)\n+            CommonRequestsv2.set_up_shopping_list_item(self)\n+            CommonRequestsv2.set_up_shopping_list_item(self)\n+            CommonRequestsv2.set_up_shopping_list_item(self)\n+\n+            res = self.get_all_shopping_list_items(client, CommonRequestsv2.list_id)","path":"app/tests/v2/test_shopping_list_item.py","position":51,"original_position":51,"commit_id":"e9655e66f08f0a9c685ad2ecfdc8bd4779abba8e","original_commit_id":"e9655e66f08f0a9c685ad2ecfdc8bd4779abba8e","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"line too long (84 > 79 characters)","created_at":"2017-10-18T12:36:24Z","updated_at":"2017-10-18T12:36:25Z","html_url":"https://github.com/VincentHokie/andela-flask-api/pull/34#discussion_r145400181","pull_request_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/34","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/comments/145400181"},"html":{"href":"https://github.com/VincentHokie/andela-flask-api/pull/34#discussion_r145400181"},"pull_request":{"href":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/34","id":147288332,"html_url":"https://github.com/VincentHokie/andela-flask-api/pull/34","diff_url":"https://github.com/VincentHokie/andela-flask-api/pull/34.diff","patch_url":"https://github.com/VincentHokie/andela-flask-api/pull/34.patch","issue_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/issues/34","number":34,"state":"open","locked":false,"title":"use .env file to store sensitive info","user":{"login":"VincentHokie","id":9318050,"avatar_url":"https://avatars0.githubusercontent.com/u/9318050?v=4","gravatar_id":"","url":"https://api.github.com/users/VincentHokie","html_url":"https://github.com/VincentHokie","followers_url":"https://api.github.com/users/VincentHokie/followers","following_url":"https://api.github.com/users/VincentHokie/following{/other_user}","gists_url":"https://api.github.com/users/VincentHokie/gists{/gist_id}","starred_url":"https://api.github.com/users/VincentHokie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincentHokie/subscriptions","organizations_url":"https://api.github.com/users/VincentHokie/orgs","repos_url":"https://api.github.com/users/VincentHokie/repos","events_url":"https://api.github.com/users/VincentHokie/events{/privacy}","received_events_url":"https://api.github.com/users/VincentHokie/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-18T12:36:17Z","updated_at":"2017-10-18T12:36:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2dbd95290932ed761e373a5e2cd060c365350bbc","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/34/commits","review_comments_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/34/comments","review_comment_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/issues/34/comments","statuses_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/statuses/e9655e66f08f0a9c685ad2ecfdc8bd4779abba8e","head":{"label":"VincentHokie:feature/RESTify-urls","ref":"feature/RESTify-urls","sha":"e9655e66f08f0a9c685ad2ecfdc8bd4779abba8e","user":{"login":"VincentHokie","id":9318050,"avatar_url":"https://avatars0.githubusercontent.com/u/9318050?v=4","gravatar_id":"","url":"https://api.github.com/users/VincentHokie","html_url":"https://github.com/VincentHokie","followers_url":"https://api.github.com/users/VincentHokie/followers","following_url":"https://api.github.com/users/VincentHokie/following{/other_user}","gists_url":"https://api.github.com/users/VincentHokie/gists{/gist_id}","starred_url":"https://api.github.com/users/VincentHokie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincentHokie/subscriptions","organizations_url":"https://api.github.com/users/VincentHokie/orgs","repos_url":"https://api.github.com/users/VincentHokie/repos","events_url":"https://api.github.com/users/VincentHokie/events{/privacy}","received_events_url":"https://api.github.com/users/VincentHokie/received_events","type":"User","site_admin":false},"repo":{"id":100935098,"name":"andela-flask-api","full_name":"VincentHokie/andela-flask-api","owner":{"login":"VincentHokie","id":9318050,"avatar_url":"https://avatars0.githubusercontent.com/u/9318050?v=4","gravatar_id":"","url":"https://api.github.com/users/VincentHokie","html_url":"https://github.com/VincentHokie","followers_url":"https://api.github.com/users/VincentHokie/followers","following_url":"https://api.github.com/users/VincentHokie/following{/other_user}","gists_url":"https://api.github.com/users/VincentHokie/gists{/gist_id}","starred_url":"https://api.github.com/users/VincentHokie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincentHokie/subscriptions","organizations_url":"https://api.github.com/users/VincentHokie/orgs","repos_url":"https://api.github.com/users/VincentHokie/repos","events_url":"https://api.github.com/users/VincentHokie/events{/privacy}","received_events_url":"https://api.github.com/users/VincentHokie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VincentHokie/andela-flask-api","description":null,"fork":false,"url":"https://api.github.com/repos/VincentHokie/andela-flask-api","forks_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/forks","keys_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/teams","hooks_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/hooks","issue_events_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/issues/events{/number}","events_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/events","assignees_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/assignees{/user}","branches_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/branches{/branch}","tags_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/tags","blobs_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/statuses/{sha}","languages_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/languages","stargazers_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/stargazers","contributors_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/contributors","subscribers_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/subscribers","subscription_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/subscription","commits_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/contents/{+path}","compare_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/merges","archive_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/downloads","issues_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/issues{/number}","pulls_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls{/number}","milestones_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/milestones{/number}","notifications_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/labels{/name}","releases_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/releases{/id}","deployments_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/deployments","created_at":"2017-08-21T09:18:29Z","updated_at":"2017-08-24T08:44:58Z","pushed_at":"2017-10-18T12:36:18Z","git_url":"git://github.com/VincentHokie/andela-flask-api.git","ssh_url":"git@github.com:VincentHokie/andela-flask-api.git","clone_url":"https://github.com/VincentHokie/andela-flask-api.git","svn_url":"https://github.com/VincentHokie/andela-flask-api","homepage":null,"size":709,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"VincentHokie:master","ref":"master","sha":"d99225b08df38b79249afaf8faabda251dd8a03e","user":{"login":"VincentHokie","id":9318050,"avatar_url":"https://avatars0.githubusercontent.com/u/9318050?v=4","gravatar_id":"","url":"https://api.github.com/users/VincentHokie","html_url":"https://github.com/VincentHokie","followers_url":"https://api.github.com/users/VincentHokie/followers","following_url":"https://api.github.com/users/VincentHokie/following{/other_user}","gists_url":"https://api.github.com/users/VincentHokie/gists{/gist_id}","starred_url":"https://api.github.com/users/VincentHokie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincentHokie/subscriptions","organizations_url":"https://api.github.com/users/VincentHokie/orgs","repos_url":"https://api.github.com/users/VincentHokie/repos","events_url":"https://api.github.com/users/VincentHokie/events{/privacy}","received_events_url":"https://api.github.com/users/VincentHokie/received_events","type":"User","site_admin":false},"repo":{"id":100935098,"name":"andela-flask-api","full_name":"VincentHokie/andela-flask-api","owner":{"login":"VincentHokie","id":9318050,"avatar_url":"https://avatars0.githubusercontent.com/u/9318050?v=4","gravatar_id":"","url":"https://api.github.com/users/VincentHokie","html_url":"https://github.com/VincentHokie","followers_url":"https://api.github.com/users/VincentHokie/followers","following_url":"https://api.github.com/users/VincentHokie/following{/other_user}","gists_url":"https://api.github.com/users/VincentHokie/gists{/gist_id}","starred_url":"https://api.github.com/users/VincentHokie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincentHokie/subscriptions","organizations_url":"https://api.github.com/users/VincentHokie/orgs","repos_url":"https://api.github.com/users/VincentHokie/repos","events_url":"https://api.github.com/users/VincentHokie/events{/privacy}","received_events_url":"https://api.github.com/users/VincentHokie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VincentHokie/andela-flask-api","description":null,"fork":false,"url":"https://api.github.com/repos/VincentHokie/andela-flask-api","forks_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/forks","keys_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/teams","hooks_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/hooks","issue_events_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/issues/events{/number}","events_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/events","assignees_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/assignees{/user}","branches_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/branches{/branch}","tags_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/tags","blobs_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/statuses/{sha}","languages_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/languages","stargazers_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/stargazers","contributors_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/contributors","subscribers_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/subscribers","subscription_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/subscription","commits_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/contents/{+path}","compare_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/merges","archive_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/downloads","issues_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/issues{/number}","pulls_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls{/number}","milestones_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/milestones{/number}","notifications_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/labels{/name}","releases_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/releases{/id}","deployments_url":"https://api.github.com/repos/VincentHokie/andela-flask-api/deployments","created_at":"2017-08-21T09:18:29Z","updated_at":"2017-08-24T08:44:58Z","pushed_at":"2017-10-18T12:36:18Z","git_url":"git://github.com/VincentHokie/andela-flask-api.git","ssh_url":"git@github.com:VincentHokie/andela-flask-api.git","clone_url":"https://github.com/VincentHokie/andela-flask-api.git","svn_url":"https://github.com/VincentHokie/andela-flask-api","homepage":null,"size":709,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/34"},"html":{"href":"https://github.com/VincentHokie/andela-flask-api/pull/34"},"issue":{"href":"https://api.github.com/repos/VincentHokie/andela-flask-api/issues/34"},"comments":{"href":"https://api.github.com/repos/VincentHokie/andela-flask-api/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VincentHokie/andela-flask-api/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/VincentHokie/andela-flask-api/statuses/e9655e66f08f0a9c685ad2ecfdc8bd4779abba8e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}