{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/pulls/9","id":56011682,"html_url":"https://github.com/Stefan-Endres/DWPM-Mixture-Model/pull/9","diff_url":"https://github.com/Stefan-Endres/DWPM-Mixture-Model/pull/9.diff","patch_url":"https://github.com/Stefan-Endres/DWPM-Mixture-Model/pull/9.patch","issue_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/issues/9","number":9,"state":"closed","locked":false,"title":"Proper unit testing","user":{"login":"alchemyst","id":236588,"avatar_url":"https://avatars.githubusercontent.com/u/236588?v=3","gravatar_id":"","url":"https://api.github.com/users/alchemyst","html_url":"https://github.com/alchemyst","followers_url":"https://api.github.com/users/alchemyst/followers","following_url":"https://api.github.com/users/alchemyst/following{/other_user}","gists_url":"https://api.github.com/users/alchemyst/gists{/gist_id}","starred_url":"https://api.github.com/users/alchemyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchemyst/subscriptions","organizations_url":"https://api.github.com/users/alchemyst/orgs","repos_url":"https://api.github.com/users/alchemyst/repos","events_url":"https://api.github.com/users/alchemyst/events{/privacy}","received_events_url":"https://api.github.com/users/alchemyst/received_events","type":"User","site_admin":false},"body":"I've wrapped the test cases up using the `unittest` module and while I was at it I created a nicer interface for specifying test functions with classes. This should give you a good start to using unit tests. Currently I think Spyder doesn't run unit tests nicely. I highly recommend [PyCharm CE](https://www.jetbrains.com/pycharm/) which will run the tests in a nice little test window.","created_at":"2016-01-14T09:42:49Z","updated_at":"2016-01-14T10:00:48Z","closed_at":"2016-01-14T10:00:48Z","merged_at":"2016-01-14T10:00:48Z","merge_commit_sha":"ce3e9a973b2872493bb6c3d75cc01c87aff66ccb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/pulls/9/commits","review_comments_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/pulls/9/comments","review_comment_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/issues/9/comments","statuses_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/statuses/f6885d027ccebc1be8cc101e6e70e865ee0ad081","head":{"label":"alchemyst:master","ref":"master","sha":"f6885d027ccebc1be8cc101e6e70e865ee0ad081","user":{"login":"alchemyst","id":236588,"avatar_url":"https://avatars.githubusercontent.com/u/236588?v=3","gravatar_id":"","url":"https://api.github.com/users/alchemyst","html_url":"https://github.com/alchemyst","followers_url":"https://api.github.com/users/alchemyst/followers","following_url":"https://api.github.com/users/alchemyst/following{/other_user}","gists_url":"https://api.github.com/users/alchemyst/gists{/gist_id}","starred_url":"https://api.github.com/users/alchemyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchemyst/subscriptions","organizations_url":"https://api.github.com/users/alchemyst/orgs","repos_url":"https://api.github.com/users/alchemyst/repos","events_url":"https://api.github.com/users/alchemyst/events{/privacy}","received_events_url":"https://api.github.com/users/alchemyst/received_events","type":"User","site_admin":false},"repo":{"id":49625589,"name":"DWPM-Mixture-Model","full_name":"alchemyst/DWPM-Mixture-Model","owner":{"login":"alchemyst","id":236588,"avatar_url":"https://avatars.githubusercontent.com/u/236588?v=3","gravatar_id":"","url":"https://api.github.com/users/alchemyst","html_url":"https://github.com/alchemyst","followers_url":"https://api.github.com/users/alchemyst/followers","following_url":"https://api.github.com/users/alchemyst/following{/other_user}","gists_url":"https://api.github.com/users/alchemyst/gists{/gist_id}","starred_url":"https://api.github.com/users/alchemyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchemyst/subscriptions","organizations_url":"https://api.github.com/users/alchemyst/orgs","repos_url":"https://api.github.com/users/alchemyst/repos","events_url":"https://api.github.com/users/alchemyst/events{/privacy}","received_events_url":"https://api.github.com/users/alchemyst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alchemyst/DWPM-Mixture-Model","description":"Phase seperation calculation using the DWPM mixture rule.","fork":true,"url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model","forks_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/forks","keys_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/teams","hooks_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/hooks","issue_events_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/issues/events{/number}","events_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/events","assignees_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/assignees{/user}","branches_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/branches{/branch}","tags_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/tags","blobs_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/git/refs{/sha}","trees_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/statuses/{sha}","languages_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/languages","stargazers_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/stargazers","contributors_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/contributors","subscribers_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/subscribers","subscription_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/subscription","commits_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/commits{/sha}","git_commits_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/git/commits{/sha}","comments_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/comments{/number}","issue_comment_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/issues/comments{/number}","contents_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/contents/{+path}","compare_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/merges","archive_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/downloads","issues_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/issues{/number}","pulls_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/pulls{/number}","milestones_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/milestones{/number}","notifications_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/labels{/name}","releases_url":"https://api.github.com/repos/alchemyst/DWPM-Mixture-Model/releases{/id}","created_at":"2016-01-14T05:44:58Z","updated_at":"2016-01-14T05:44:59Z","pushed_at":"2016-01-14T09:38:32Z","git_url":"git://github.com/alchemyst/DWPM-Mixture-Model.git","ssh_url":"git@github.com:alchemyst/DWPM-Mixture-Model.git","clone_url":"https://github.com/alchemyst/DWPM-Mixture-Model.git","svn_url":"https://github.com/alchemyst/DWPM-Mixture-Model","homepage":"","size":596,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","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":"master"}},"base":{"label":"Stefan-Endres:master","ref":"master","sha":"2b194c5268e11cfd49bc3c39d4fd2c8e0bf11f96","user":{"login":"Stefan-Endres","id":8235072,"avatar_url":"https://avatars.githubusercontent.com/u/8235072?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefan-Endres","html_url":"https://github.com/Stefan-Endres","followers_url":"https://api.github.com/users/Stefan-Endres/followers","following_url":"https://api.github.com/users/Stefan-Endres/following{/other_user}","gists_url":"https://api.github.com/users/Stefan-Endres/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefan-Endres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefan-Endres/subscriptions","organizations_url":"https://api.github.com/users/Stefan-Endres/orgs","repos_url":"https://api.github.com/users/Stefan-Endres/repos","events_url":"https://api.github.com/users/Stefan-Endres/events{/privacy}","received_events_url":"https://api.github.com/users/Stefan-Endres/received_events","type":"User","site_admin":false},"repo":{"id":42455963,"name":"DWPM-Mixture-Model","full_name":"Stefan-Endres/DWPM-Mixture-Model","owner":{"login":"Stefan-Endres","id":8235072,"avatar_url":"https://avatars.githubusercontent.com/u/8235072?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefan-Endres","html_url":"https://github.com/Stefan-Endres","followers_url":"https://api.github.com/users/Stefan-Endres/followers","following_url":"https://api.github.com/users/Stefan-Endres/following{/other_user}","gists_url":"https://api.github.com/users/Stefan-Endres/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefan-Endres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefan-Endres/subscriptions","organizations_url":"https://api.github.com/users/Stefan-Endres/orgs","repos_url":"https://api.github.com/users/Stefan-Endres/repos","events_url":"https://api.github.com/users/Stefan-Endres/events{/privacy}","received_events_url":"https://api.github.com/users/Stefan-Endres/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stefan-Endres/DWPM-Mixture-Model","description":"Phase seperation calculation using the DWPM mixture rule.","fork":false,"url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model","forks_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/forks","keys_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/teams","hooks_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/hooks","issue_events_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/issues/events{/number}","events_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/events","assignees_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/assignees{/user}","branches_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/branches{/branch}","tags_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/tags","blobs_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/statuses/{sha}","languages_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/languages","stargazers_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/stargazers","contributors_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/contributors","subscribers_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/subscribers","subscription_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/subscription","commits_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/contents/{+path}","compare_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/merges","archive_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/downloads","issues_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/issues{/number}","pulls_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/pulls{/number}","milestones_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/milestones{/number}","notifications_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/labels{/name}","releases_url":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/releases{/id}","created_at":"2015-09-14T15:04:41Z","updated_at":"2016-01-13T00:05:18Z","pushed_at":"2016-01-14T10:00:49Z","git_url":"git://github.com/Stefan-Endres/DWPM-Mixture-Model.git","ssh_url":"git@github.com:Stefan-Endres/DWPM-Mixture-Model.git","clone_url":"https://github.com/Stefan-Endres/DWPM-Mixture-Model.git","svn_url":"https://github.com/Stefan-Endres/DWPM-Mixture-Model","homepage":"","size":596,"stargazers_count":1,"watchers_count":1,"language":"Jupyter Notebook","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/pulls/9"},"html":{"href":"https://github.com/Stefan-Endres/DWPM-Mixture-Model/pull/9"},"issue":{"href":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/issues/9"},"comments":{"href":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/Stefan-Endres/DWPM-Mixture-Model/statuses/f6885d027ccebc1be8cc101e6e70e865ee0ad081"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Stefan-Endres","id":8235072,"avatar_url":"https://avatars.githubusercontent.com/u/8235072?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefan-Endres","html_url":"https://github.com/Stefan-Endres","followers_url":"https://api.github.com/users/Stefan-Endres/followers","following_url":"https://api.github.com/users/Stefan-Endres/following{/other_user}","gists_url":"https://api.github.com/users/Stefan-Endres/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefan-Endres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefan-Endres/subscriptions","organizations_url":"https://api.github.com/users/Stefan-Endres/orgs","repos_url":"https://api.github.com/users/Stefan-Endres/repos","events_url":"https://api.github.com/users/Stefan-Endres/events{/privacy}","received_events_url":"https://api.github.com/users/Stefan-Endres/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":4,"additions":65,"deletions":88,"changed_files":1}}