{"action":"opened","number":37,"pull_request":{"url":"https://api.github.com/repos/gvwilson/new-lesson-example/pulls/37","id":73520181,"html_url":"https://github.com/gvwilson/new-lesson-example/pull/37","diff_url":"https://github.com/gvwilson/new-lesson-example/pull/37.diff","patch_url":"https://github.com/gvwilson/new-lesson-example/pull/37.patch","issue_url":"https://api.github.com/repos/gvwilson/new-lesson-example/issues/37","number":37,"state":"open","locked":false,"title":"Sample unit test for lesson validator","user":{"login":"abought","id":2957073,"avatar_url":"https://avatars.githubusercontent.com/u/2957073?v=3","gravatar_id":"","url":"https://api.github.com/users/abought","html_url":"https://github.com/abought","followers_url":"https://api.github.com/users/abought/followers","following_url":"https://api.github.com/users/abought/following{/other_user}","gists_url":"https://api.github.com/users/abought/gists{/gist_id}","starred_url":"https://api.github.com/users/abought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abought/subscriptions","organizations_url":"https://api.github.com/users/abought/orgs","repos_url":"https://api.github.com/users/abought/repos","events_url":"https://api.github.com/users/abought/events{/privacy}","received_events_url":"https://api.github.com/users/abought/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nDemonstrate unit testing of a function in the validator, to get the ball rolling.\r\n\r\nThis code is slightly unfamiliar and it's late at night, so please be on the lookout for regressions / bugs. I'll be happy to fix anything noted.\r\n\r\n## Summary of changes\r\n- Add a new `make unittest` command to run tests\r\n- Rename the validator python files to something that works more naturally with python imports, and update makefile commands so the difference should not be noticeable to users\r\n- Change call signature of `check_fileset` function to better support unit testing\r\n- Add a single test that verifies no errors when the validator sees the expected list of files","created_at":"2016-06-13T03:57:11Z","updated_at":"2016-06-13T03:57:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76fff6ef580e9d314cb8675e6f422de282c35dc1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gvwilson/new-lesson-example/pulls/37/commits","review_comments_url":"https://api.github.com/repos/gvwilson/new-lesson-example/pulls/37/comments","review_comment_url":"https://api.github.com/repos/gvwilson/new-lesson-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gvwilson/new-lesson-example/issues/37/comments","statuses_url":"https://api.github.com/repos/gvwilson/new-lesson-example/statuses/ba7b8756ce43402466c8e8f30768e13ea8437316","head":{"label":"abought:feature/sample-test","ref":"feature/sample-test","sha":"ba7b8756ce43402466c8e8f30768e13ea8437316","user":{"login":"abought","id":2957073,"avatar_url":"https://avatars.githubusercontent.com/u/2957073?v=3","gravatar_id":"","url":"https://api.github.com/users/abought","html_url":"https://github.com/abought","followers_url":"https://api.github.com/users/abought/followers","following_url":"https://api.github.com/users/abought/following{/other_user}","gists_url":"https://api.github.com/users/abought/gists{/gist_id}","starred_url":"https://api.github.com/users/abought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abought/subscriptions","organizations_url":"https://api.github.com/users/abought/orgs","repos_url":"https://api.github.com/users/abought/repos","events_url":"https://api.github.com/users/abought/events{/privacy}","received_events_url":"https://api.github.com/users/abought/received_events","type":"User","site_admin":false},"repo":{"id":60493735,"name":"new-lesson-example","full_name":"abought/new-lesson-example","owner":{"login":"abought","id":2957073,"avatar_url":"https://avatars.githubusercontent.com/u/2957073?v=3","gravatar_id":"","url":"https://api.github.com/users/abought","html_url":"https://github.com/abought","followers_url":"https://api.github.com/users/abought/followers","following_url":"https://api.github.com/users/abought/following{/other_user}","gists_url":"https://api.github.com/users/abought/gists{/gist_id}","starred_url":"https://api.github.com/users/abought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abought/subscriptions","organizations_url":"https://api.github.com/users/abought/orgs","repos_url":"https://api.github.com/users/abought/repos","events_url":"https://api.github.com/users/abought/events{/privacy}","received_events_url":"https://api.github.com/users/abought/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abought/new-lesson-example","description":"Example lesson using new template.","fork":true,"url":"https://api.github.com/repos/abought/new-lesson-example","forks_url":"https://api.github.com/repos/abought/new-lesson-example/forks","keys_url":"https://api.github.com/repos/abought/new-lesson-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abought/new-lesson-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abought/new-lesson-example/teams","hooks_url":"https://api.github.com/repos/abought/new-lesson-example/hooks","issue_events_url":"https://api.github.com/repos/abought/new-lesson-example/issues/events{/number}","events_url":"https://api.github.com/repos/abought/new-lesson-example/events","assignees_url":"https://api.github.com/repos/abought/new-lesson-example/assignees{/user}","branches_url":"https://api.github.com/repos/abought/new-lesson-example/branches{/branch}","tags_url":"https://api.github.com/repos/abought/new-lesson-example/tags","blobs_url":"https://api.github.com/repos/abought/new-lesson-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abought/new-lesson-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abought/new-lesson-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/abought/new-lesson-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abought/new-lesson-example/statuses/{sha}","languages_url":"https://api.github.com/repos/abought/new-lesson-example/languages","stargazers_url":"https://api.github.com/repos/abought/new-lesson-example/stargazers","contributors_url":"https://api.github.com/repos/abought/new-lesson-example/contributors","subscribers_url":"https://api.github.com/repos/abought/new-lesson-example/subscribers","subscription_url":"https://api.github.com/repos/abought/new-lesson-example/subscription","commits_url":"https://api.github.com/repos/abought/new-lesson-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/abought/new-lesson-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/abought/new-lesson-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/abought/new-lesson-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/abought/new-lesson-example/contents/{+path}","compare_url":"https://api.github.com/repos/abought/new-lesson-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abought/new-lesson-example/merges","archive_url":"https://api.github.com/repos/abought/new-lesson-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abought/new-lesson-example/downloads","issues_url":"https://api.github.com/repos/abought/new-lesson-example/issues{/number}","pulls_url":"https://api.github.com/repos/abought/new-lesson-example/pulls{/number}","milestones_url":"https://api.github.com/repos/abought/new-lesson-example/milestones{/number}","notifications_url":"https://api.github.com/repos/abought/new-lesson-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abought/new-lesson-example/labels{/name}","releases_url":"https://api.github.com/repos/abought/new-lesson-example/releases{/id}","deployments_url":"https://api.github.com/repos/abought/new-lesson-example/deployments","created_at":"2016-06-06T02:47:35Z","updated_at":"2016-06-06T02:47:36Z","pushed_at":"2016-06-13T03:54:24Z","git_url":"git://github.com/abought/new-lesson-example.git","ssh_url":"git@github.com:abought/new-lesson-example.git","clone_url":"https://github.com/abought/new-lesson-example.git","svn_url":"https://github.com/abought/new-lesson-example","homepage":"https://gvwilson.github.io/new-lesson-example","size":6219,"stargazers_count":0,"watchers_count":0,"language":"PostScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"gvwilson:gh-pages","ref":"gh-pages","sha":"f467b0f43025c262d9d3af74155af87151b79ae8","user":{"login":"gvwilson","id":911566,"avatar_url":"https://avatars.githubusercontent.com/u/911566?v=3","gravatar_id":"","url":"https://api.github.com/users/gvwilson","html_url":"https://github.com/gvwilson","followers_url":"https://api.github.com/users/gvwilson/followers","following_url":"https://api.github.com/users/gvwilson/following{/other_user}","gists_url":"https://api.github.com/users/gvwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/gvwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvwilson/subscriptions","organizations_url":"https://api.github.com/users/gvwilson/orgs","repos_url":"https://api.github.com/users/gvwilson/repos","events_url":"https://api.github.com/users/gvwilson/events{/privacy}","received_events_url":"https://api.github.com/users/gvwilson/received_events","type":"User","site_admin":false},"repo":{"id":56395567,"name":"new-lesson-example","full_name":"gvwilson/new-lesson-example","owner":{"login":"gvwilson","id":911566,"avatar_url":"https://avatars.githubusercontent.com/u/911566?v=3","gravatar_id":"","url":"https://api.github.com/users/gvwilson","html_url":"https://github.com/gvwilson","followers_url":"https://api.github.com/users/gvwilson/followers","following_url":"https://api.github.com/users/gvwilson/following{/other_user}","gists_url":"https://api.github.com/users/gvwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/gvwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvwilson/subscriptions","organizations_url":"https://api.github.com/users/gvwilson/orgs","repos_url":"https://api.github.com/users/gvwilson/repos","events_url":"https://api.github.com/users/gvwilson/events{/privacy}","received_events_url":"https://api.github.com/users/gvwilson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gvwilson/new-lesson-example","description":"Example lesson using new template.","fork":false,"url":"https://api.github.com/repos/gvwilson/new-lesson-example","forks_url":"https://api.github.com/repos/gvwilson/new-lesson-example/forks","keys_url":"https://api.github.com/repos/gvwilson/new-lesson-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gvwilson/new-lesson-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gvwilson/new-lesson-example/teams","hooks_url":"https://api.github.com/repos/gvwilson/new-lesson-example/hooks","issue_events_url":"https://api.github.com/repos/gvwilson/new-lesson-example/issues/events{/number}","events_url":"https://api.github.com/repos/gvwilson/new-lesson-example/events","assignees_url":"https://api.github.com/repos/gvwilson/new-lesson-example/assignees{/user}","branches_url":"https://api.github.com/repos/gvwilson/new-lesson-example/branches{/branch}","tags_url":"https://api.github.com/repos/gvwilson/new-lesson-example/tags","blobs_url":"https://api.github.com/repos/gvwilson/new-lesson-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gvwilson/new-lesson-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gvwilson/new-lesson-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/gvwilson/new-lesson-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gvwilson/new-lesson-example/statuses/{sha}","languages_url":"https://api.github.com/repos/gvwilson/new-lesson-example/languages","stargazers_url":"https://api.github.com/repos/gvwilson/new-lesson-example/stargazers","contributors_url":"https://api.github.com/repos/gvwilson/new-lesson-example/contributors","subscribers_url":"https://api.github.com/repos/gvwilson/new-lesson-example/subscribers","subscription_url":"https://api.github.com/repos/gvwilson/new-lesson-example/subscription","commits_url":"https://api.github.com/repos/gvwilson/new-lesson-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/gvwilson/new-lesson-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/gvwilson/new-lesson-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/gvwilson/new-lesson-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/gvwilson/new-lesson-example/contents/{+path}","compare_url":"https://api.github.com/repos/gvwilson/new-lesson-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gvwilson/new-lesson-example/merges","archive_url":"https://api.github.com/repos/gvwilson/new-lesson-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gvwilson/new-lesson-example/downloads","issues_url":"https://api.github.com/repos/gvwilson/new-lesson-example/issues{/number}","pulls_url":"https://api.github.com/repos/gvwilson/new-lesson-example/pulls{/number}","milestones_url":"https://api.github.com/repos/gvwilson/new-lesson-example/milestones{/number}","notifications_url":"https://api.github.com/repos/gvwilson/new-lesson-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gvwilson/new-lesson-example/labels{/name}","releases_url":"https://api.github.com/repos/gvwilson/new-lesson-example/releases{/id}","deployments_url":"https://api.github.com/repos/gvwilson/new-lesson-example/deployments","created_at":"2016-04-16T17:04:04Z","updated_at":"2016-05-02T12:23:03Z","pushed_at":"2016-06-13T03:57:12Z","git_url":"git://github.com/gvwilson/new-lesson-example.git","ssh_url":"git@github.com:gvwilson/new-lesson-example.git","clone_url":"https://github.com/gvwilson/new-lesson-example.git","svn_url":"https://github.com/gvwilson/new-lesson-example","homepage":"https://gvwilson.github.io/new-lesson-example","size":6213,"stargazers_count":0,"watchers_count":0,"language":"PostScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":13,"forks":9,"open_issues":13,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/gvwilson/new-lesson-example/pulls/37"},"html":{"href":"https://github.com/gvwilson/new-lesson-example/pull/37"},"issue":{"href":"https://api.github.com/repos/gvwilson/new-lesson-example/issues/37"},"comments":{"href":"https://api.github.com/repos/gvwilson/new-lesson-example/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/gvwilson/new-lesson-example/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/gvwilson/new-lesson-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gvwilson/new-lesson-example/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/gvwilson/new-lesson-example/statuses/ba7b8756ce43402466c8e8f30768e13ea8437316"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":66,"deletions":42,"changed_files":7}}
{"actor":{"display_login":"abought"}}