{"action":"created","comment":{"url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/comments/59069408","id":59069408,"diff_hunk":"@@ -115,15 +145,38 @@ def test_check_status(self):\n         json = response.json\n         # response ids are coming back as string, so patch the jobIdDict\n         jobIdDict = {k: str(self.jobIdDict[k]) for k in self.jobIdDict.keys()}\n-        self.assertEqual(json[jobIdDict[\"appropriations\"]][\"job_status\"],\"ready\")\n-        self.assertEqual(json[jobIdDict[\"appropriations\"]][\"job_type\"],\"csv_record_validation\")\n-        self.assertEqual(json[jobIdDict[\"appropriations\"]][\"file_type\"],\"appropriations\")\n-        self.assertEqual(json[jobIdDict[\"appropriations\"]][\"filename\"],\"approp.csv\")\n-        self.assertEqual(json[jobIdDict[\"appropriations\"]][\"file_status\"],\"complete\")\n-        self.assertIn(\"missing_header_one\", json[jobIdDict[\"appropriations\"]][\"missing_headers\"])\n-        self.assertIn(\"missing_header_two\", json[jobIdDict[\"appropriations\"]][\"missing_headers\"])\n-        self.assertIn(\"duplicated_header_one\", json[jobIdDict[\"appropriations\"]][\"duplicated_headers\"])\n-        self.assertIn(\"duplicated_header_two\", json[jobIdDict[\"appropriations\"]][\"duplicated_headers\"])\n+        jobList = json[\"jobs\"]\n+        appropJob = None\n+        for job in jobList:\n+            if str(job[\"job_id\"]) == str(jobIdDict[\"appropriations\"]):\n+                # Found the job to be checked\n+                appropJob = job","path":"tests/fileTests.py","position":86,"original_position":86,"commit_id":"bd1b23eb39ffb89a87dfbe80d2b5b6c3762e4a40","original_commit_id":"7ec76bdb1fff4f674df9d376186ce797eade76e1","user":{"login":"bsweger","id":540544,"avatar_url":"https://avatars.githubusercontent.com/u/540544?v=3","gravatar_id":"","url":"https://api.github.com/users/bsweger","html_url":"https://github.com/bsweger","followers_url":"https://api.github.com/users/bsweger/followers","following_url":"https://api.github.com/users/bsweger/following{/other_user}","gists_url":"https://api.github.com/users/bsweger/gists{/gist_id}","starred_url":"https://api.github.com/users/bsweger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsweger/subscriptions","organizations_url":"https://api.github.com/users/bsweger/orgs","repos_url":"https://api.github.com/users/bsweger/repos","events_url":"https://api.github.com/users/bsweger/events{/privacy}","received_events_url":"https://api.github.com/users/bsweger/received_events","type":"User","site_admin":false},"body":"Likely not a big deal on this small amount of data, but what do you think about doing a  `break` to exit the loop once the appropJob is found?","created_at":"2016-04-08T18:29:43Z","updated_at":"2016-04-08T18:29:43Z","html_url":"https://github.com/fedspendingtransparency/data-act-broker/pull/26#discussion_r59069408","pull_request_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/comments/59069408"},"html":{"href":"https://github.com/fedspendingtransparency/data-act-broker/pull/26#discussion_r59069408"},"pull_request":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/26","id":65523913,"html_url":"https://github.com/fedspendingtransparency/data-act-broker/pull/26","diff_url":"https://github.com/fedspendingtransparency/data-act-broker/pull/26.diff","patch_url":"https://github.com/fedspendingtransparency/data-act-broker/pull/26.patch","issue_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/issues/26","number":26,"state":"open","locked":false,"title":"Expanded check status feature","user":{"login":"jworcestBAH","id":11858333,"avatar_url":"https://avatars.githubusercontent.com/u/11858333?v=3","gravatar_id":"","url":"https://api.github.com/users/jworcestBAH","html_url":"https://github.com/jworcestBAH","followers_url":"https://api.github.com/users/jworcestBAH/followers","following_url":"https://api.github.com/users/jworcestBAH/following{/other_user}","gists_url":"https://api.github.com/users/jworcestBAH/gists{/gist_id}","starred_url":"https://api.github.com/users/jworcestBAH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jworcestBAH/subscriptions","organizations_url":"https://api.github.com/users/jworcestBAH/orgs","repos_url":"https://api.github.com/users/jworcestBAH/repos","events_url":"https://api.github.com/users/jworcestBAH/events{/privacy}","received_events_url":"https://api.github.com/users/jworcestBAH/received_events","type":"User","site_admin":false},"body":"@bsweger, @nmonga91: This PR has the functionality for DB-349, storing submission level metadata and including it in the check_status route.","created_at":"2016-04-06T19:41:01Z","updated_at":"2016-04-08T18:29:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f33fbf641064ee12540de86b658f2dd44c55277a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/26/commits","review_comments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/26/comments","review_comment_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/issues/26/comments","statuses_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/statuses/bd1b23eb39ffb89a87dfbe80d2b5b6c3762e4a40","head":{"label":"fedspendingtransparency:expanded_check_status_feature","ref":"expanded_check_status_feature","sha":"bd1b23eb39ffb89a87dfbe80d2b5b6c3762e4a40","user":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"repo":{"id":47127389,"name":"data-act-broker","full_name":"fedspendingtransparency/data-act-broker","owner":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedspendingtransparency/data-act-broker","description":"","fork":false,"url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker","forks_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/forks","keys_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/teams","hooks_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/hooks","issue_events_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/issues/events{/number}","events_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/events","assignees_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/assignees{/user}","branches_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/branches{/branch}","tags_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/tags","blobs_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/statuses/{sha}","languages_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/languages","stargazers_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/stargazers","contributors_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/contributors","subscribers_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/subscribers","subscription_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/subscription","commits_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/issues/comments{/number}","contents_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/contents/{+path}","compare_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/merges","archive_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/downloads","issues_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/issues{/number}","pulls_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls{/number}","milestones_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/milestones{/number}","notifications_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/labels{/name}","releases_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/releases{/id}","deployments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/deployments","created_at":"2015-11-30T15:21:57Z","updated_at":"2016-03-02T15:55:37Z","pushed_at":"2016-04-08T15:50:39Z","git_url":"git://github.com/fedspendingtransparency/data-act-broker.git","ssh_url":"git@github.com:fedspendingtransparency/data-act-broker.git","clone_url":"https://github.com/fedspendingtransparency/data-act-broker.git","svn_url":"https://github.com/fedspendingtransparency/data-act-broker","homepage":null,"size":403,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"fedspendingtransparency:dev","ref":"dev","sha":"deaf9a459b3cedc8bbcb6cd621f0014b3632861a","user":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"repo":{"id":47127389,"name":"data-act-broker","full_name":"fedspendingtransparency/data-act-broker","owner":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedspendingtransparency/data-act-broker","description":"","fork":false,"url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker","forks_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/forks","keys_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/teams","hooks_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/hooks","issue_events_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/issues/events{/number}","events_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/events","assignees_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/assignees{/user}","branches_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/branches{/branch}","tags_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/tags","blobs_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/statuses/{sha}","languages_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/languages","stargazers_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/stargazers","contributors_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/contributors","subscribers_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/subscribers","subscription_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/subscription","commits_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/issues/comments{/number}","contents_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/contents/{+path}","compare_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/merges","archive_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/downloads","issues_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/issues{/number}","pulls_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls{/number}","milestones_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/milestones{/number}","notifications_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/labels{/name}","releases_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/releases{/id}","deployments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/deployments","created_at":"2015-11-30T15:21:57Z","updated_at":"2016-03-02T15:55:37Z","pushed_at":"2016-04-08T15:50:39Z","git_url":"git://github.com/fedspendingtransparency/data-act-broker.git","ssh_url":"git@github.com:fedspendingtransparency/data-act-broker.git","clone_url":"https://github.com/fedspendingtransparency/data-act-broker.git","svn_url":"https://github.com/fedspendingtransparency/data-act-broker","homepage":null,"size":403,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/26"},"html":{"href":"https://github.com/fedspendingtransparency/data-act-broker/pull/26"},"issue":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/issues/26"},"comments":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-broker/statuses/bd1b23eb39ffb89a87dfbe80d2b5b6c3762e4a40"}}}}