{"action":"created","issue":{"url":"https://api.github.com/repos/Tribler/tribler/issues/1988","repository_url":"https://api.github.com/repos/Tribler/tribler","labels_url":"https://api.github.com/repos/Tribler/tribler/issues/1988/labels{/name}","comments_url":"https://api.github.com/repos/Tribler/tribler/issues/1988/comments","events_url":"https://api.github.com/repos/Tribler/tribler/issues/1988/events","html_url":"https://github.com/Tribler/tribler/pull/1988","id":136490536,"number":1988,"title":"Created unit tests for the Category package, decoupled Session and Category","user":{"login":"devos50","id":1707075,"avatar_url":"https://avatars.githubusercontent.com/u/1707075?v=3","gravatar_id":"","url":"https://api.github.com/users/devos50","html_url":"https://github.com/devos50","followers_url":"https://api.github.com/users/devos50/followers","following_url":"https://api.github.com/users/devos50/following{/other_user}","gists_url":"https://api.github.com/users/devos50/gists{/gist_id}","starred_url":"https://api.github.com/users/devos50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devos50/subscriptions","organizations_url":"https://api.github.com/users/devos50/orgs","repos_url":"https://api.github.com/users/devos50/repos","events_url":"https://api.github.com/users/devos50/events{/privacy}","received_events_url":"https://api.github.com/users/devos50/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-02-25T19:47:05Z","updated_at":"2016-02-26T14:13:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Tribler/tribler/pulls/1988","html_url":"https://github.com/Tribler/tribler/pull/1988","diff_url":"https://github.com/Tribler/tribler/pull/1988.diff","patch_url":"https://github.com/Tribler/tribler/pull/1988.patch"},"body":"Contained in this PR:\r\n-unit tests for the Category package. The code coverage of `Tribler.Category` is 91% after running these tests.\r\n-custom `filter_terms.py` and `category.con` files that are used for testing purposes.\r\n-refactored `Category.py` a bit. The `session` parameter now does not have to be passed anymore to the constructor of `Category`. For testing purposes, I've added an optional parameter to override the location of the `category.conf` file. Fixes #1986 "},"comment":{"url":"https://api.github.com/repos/Tribler/tribler/issues/comments/189296597","html_url":"https://github.com/Tribler/tribler/pull/1988#issuecomment-189296597","issue_url":"https://api.github.com/repos/Tribler/tribler/issues/1988","id":189296597,"user":{"login":"whirm","id":529494,"avatar_url":"https://avatars.githubusercontent.com/u/529494?v=3","gravatar_id":"","url":"https://api.github.com/users/whirm","html_url":"https://github.com/whirm","followers_url":"https://api.github.com/users/whirm/followers","following_url":"https://api.github.com/users/whirm/following{/other_user}","gists_url":"https://api.github.com/users/whirm/gists{/gist_id}","starred_url":"https://api.github.com/users/whirm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whirm/subscriptions","organizations_url":"https://api.github.com/users/whirm/orgs","repos_url":"https://api.github.com/users/whirm/repos","events_url":"https://api.github.com/users/whirm/events{/privacy}","received_events_url":"https://api.github.com/users/whirm/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T14:13:25Z","updated_at":"2016-02-26T14:13:25Z","body":"retest this please"}}