{"action":"created","comment":{"url":"https://api.github.com/repos/dmwm/WMCore/pulls/comments/67887587","id":67887587,"diff_hunk":"@@ -7,74 +7,66 @@\n import unittest\n \n from WMCore.Services.SiteDB.SiteDB import SiteDBJSON\n+from WMCore.Services.EmulatorSwitch import EmulatorHelper\n+from WMQuality.Emulators.EmulatedUnitTestCase import EmulatedUnitTestCase\n \n-class SiteDBTest(unittest.TestCase):\n+class SiteDBTest(EmulatedUnitTestCase):\n     \"\"\"\n     Unit tests for SiteScreening module\n     \"\"\"\n \n+    def  __init__(self, methodName='runTest'):\n+        super(SiteDBTest, self).__init__(methodName=methodName, mockDBS=True, mockPhEDEx=True, mockSiteDB=True)","path":"test/python/WMCore_t/Services_t/SiteDB_t/SiteDB_t.py","position":14,"original_position":14,"commit_id":"75c3b9563fd2f803583f9f447683fb1fa727eb32","original_commit_id":"75c3b9563fd2f803583f9f447683fb1fa727eb32","user":{"login":"jha2","id":5721708,"avatar_url":"https://avatars.githubusercontent.com/u/5721708?v=3","gravatar_id":"","url":"https://api.github.com/users/jha2","html_url":"https://github.com/jha2","followers_url":"https://api.github.com/users/jha2/followers","following_url":"https://api.github.com/users/jha2/following{/other_user}","gists_url":"https://api.github.com/users/jha2/gists{/gist_id}","starred_url":"https://api.github.com/users/jha2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jha2/subscriptions","organizations_url":"https://api.github.com/users/jha2/orgs","repos_url":"https://api.github.com/users/jha2/repos","events_url":"https://api.github.com/users/jha2/events{/privacy}","received_events_url":"https://api.github.com/users/jha2/received_events","type":"User","site_admin":false},"body":"Removed all the arguments except methodName. ","created_at":"2016-06-21T15:11:03Z","updated_at":"2016-06-21T15:11:03Z","html_url":"https://github.com/dmwm/WMCore/pull/6936#discussion_r67887587","pull_request_url":"https://api.github.com/repos/dmwm/WMCore/pulls/6936","_links":{"self":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/comments/67887587"},"html":{"href":"https://github.com/dmwm/WMCore/pull/6936#discussion_r67887587"},"pull_request":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/6936"}}},"pull_request":{"url":"https://api.github.com/repos/dmwm/WMCore/pulls/6936","id":73799691,"html_url":"https://github.com/dmwm/WMCore/pull/6936","diff_url":"https://github.com/dmwm/WMCore/pull/6936.diff","patch_url":"https://github.com/dmwm/WMCore/pull/6936.patch","issue_url":"https://api.github.com/repos/dmwm/WMCore/issues/6936","number":6936,"state":"open","locked":false,"title":"Using mock for SiteDB_t","user":{"login":"jha2","id":5721708,"avatar_url":"https://avatars.githubusercontent.com/u/5721708?v=3","gravatar_id":"","url":"https://api.github.com/users/jha2","html_url":"https://github.com/jha2","followers_url":"https://api.github.com/users/jha2/followers","following_url":"https://api.github.com/users/jha2/following{/other_user}","gists_url":"https://api.github.com/users/jha2/gists{/gist_id}","starred_url":"https://api.github.com/users/jha2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jha2/subscriptions","organizations_url":"https://api.github.com/users/jha2/orgs","repos_url":"https://api.github.com/users/jha2/repos","events_url":"https://api.github.com/users/jha2/events{/privacy}","received_events_url":"https://api.github.com/users/jha2/received_events","type":"User","site_admin":false},"body":"Using mock for SiteDB\r\n\r\nImplemented getting mocked data for SiteDB\r\n\r\n../../../../../test/data/Mock/SiteDBMockData.json\r\n\r\nImpleting mock version of SiteDB\r\n\r\nrefactor SiteDB and get mock that works\r\n\r\nUnit tests according to actual SiteDB service\r\n\r\nUsing mock for SiteDB\r\n\r\nRemoving testCmsNametoSE and testCmsNamePatterntoSE\r\n\r\nFix some warnings coming from pylint in SiteDB.py and SiteDBAPI.py","created_at":"2016-06-14T19:32:48Z","updated_at":"2016-06-21T15:11:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dmwm/WMCore/pulls/6936/commits","review_comments_url":"https://api.github.com/repos/dmwm/WMCore/pulls/6936/comments","review_comment_url":"https://api.github.com/repos/dmwm/WMCore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmwm/WMCore/issues/6936/comments","statuses_url":"https://api.github.com/repos/dmwm/WMCore/statuses/75c3b9563fd2f803583f9f447683fb1fa727eb32","head":{"label":"jha2:manoj_alternate_2","ref":"manoj_alternate_2","sha":"75c3b9563fd2f803583f9f447683fb1fa727eb32","user":{"login":"jha2","id":5721708,"avatar_url":"https://avatars.githubusercontent.com/u/5721708?v=3","gravatar_id":"","url":"https://api.github.com/users/jha2","html_url":"https://github.com/jha2","followers_url":"https://api.github.com/users/jha2/followers","following_url":"https://api.github.com/users/jha2/following{/other_user}","gists_url":"https://api.github.com/users/jha2/gists{/gist_id}","starred_url":"https://api.github.com/users/jha2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jha2/subscriptions","organizations_url":"https://api.github.com/users/jha2/orgs","repos_url":"https://api.github.com/users/jha2/repos","events_url":"https://api.github.com/users/jha2/events{/privacy}","received_events_url":"https://api.github.com/users/jha2/received_events","type":"User","site_admin":false},"repo":{"id":43915304,"name":"WMCore","full_name":"jha2/WMCore","owner":{"login":"jha2","id":5721708,"avatar_url":"https://avatars.githubusercontent.com/u/5721708?v=3","gravatar_id":"","url":"https://api.github.com/users/jha2","html_url":"https://github.com/jha2","followers_url":"https://api.github.com/users/jha2/followers","following_url":"https://api.github.com/users/jha2/following{/other_user}","gists_url":"https://api.github.com/users/jha2/gists{/gist_id}","starred_url":"https://api.github.com/users/jha2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jha2/subscriptions","organizations_url":"https://api.github.com/users/jha2/orgs","repos_url":"https://api.github.com/users/jha2/repos","events_url":"https://api.github.com/users/jha2/events{/privacy}","received_events_url":"https://api.github.com/users/jha2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jha2/WMCore","description":"WMCore","fork":true,"url":"https://api.github.com/repos/jha2/WMCore","forks_url":"https://api.github.com/repos/jha2/WMCore/forks","keys_url":"https://api.github.com/repos/jha2/WMCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jha2/WMCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jha2/WMCore/teams","hooks_url":"https://api.github.com/repos/jha2/WMCore/hooks","issue_events_url":"https://api.github.com/repos/jha2/WMCore/issues/events{/number}","events_url":"https://api.github.com/repos/jha2/WMCore/events","assignees_url":"https://api.github.com/repos/jha2/WMCore/assignees{/user}","branches_url":"https://api.github.com/repos/jha2/WMCore/branches{/branch}","tags_url":"https://api.github.com/repos/jha2/WMCore/tags","blobs_url":"https://api.github.com/repos/jha2/WMCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jha2/WMCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jha2/WMCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/jha2/WMCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jha2/WMCore/statuses/{sha}","languages_url":"https://api.github.com/repos/jha2/WMCore/languages","stargazers_url":"https://api.github.com/repos/jha2/WMCore/stargazers","contributors_url":"https://api.github.com/repos/jha2/WMCore/contributors","subscribers_url":"https://api.github.com/repos/jha2/WMCore/subscribers","subscription_url":"https://api.github.com/repos/jha2/WMCore/subscription","commits_url":"https://api.github.com/repos/jha2/WMCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/jha2/WMCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/jha2/WMCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/jha2/WMCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/jha2/WMCore/contents/{+path}","compare_url":"https://api.github.com/repos/jha2/WMCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jha2/WMCore/merges","archive_url":"https://api.github.com/repos/jha2/WMCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jha2/WMCore/downloads","issues_url":"https://api.github.com/repos/jha2/WMCore/issues{/number}","pulls_url":"https://api.github.com/repos/jha2/WMCore/pulls{/number}","milestones_url":"https://api.github.com/repos/jha2/WMCore/milestones{/number}","notifications_url":"https://api.github.com/repos/jha2/WMCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jha2/WMCore/labels{/name}","releases_url":"https://api.github.com/repos/jha2/WMCore/releases{/id}","deployments_url":"https://api.github.com/repos/jha2/WMCore/deployments","created_at":"2015-10-08T20:43:56Z","updated_at":"2016-01-19T21:25:15Z","pushed_at":"2016-06-20T21:43:58Z","git_url":"git://github.com/jha2/WMCore.git","ssh_url":"git@github.com:jha2/WMCore.git","clone_url":"https://github.com/jha2/WMCore.git","svn_url":"https://github.com/jha2/WMCore","homepage":"https://svnweb.cern.ch/trac/CMSDMWM/","size":27964,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"dmwm:master","ref":"master","sha":"8376255c8e223707e57d5c6d22eff35266fff653","user":{"login":"dmwm","id":988897,"avatar_url":"https://avatars.githubusercontent.com/u/988897?v=3","gravatar_id":"","url":"https://api.github.com/users/dmwm","html_url":"https://github.com/dmwm","followers_url":"https://api.github.com/users/dmwm/followers","following_url":"https://api.github.com/users/dmwm/following{/other_user}","gists_url":"https://api.github.com/users/dmwm/gists{/gist_id}","starred_url":"https://api.github.com/users/dmwm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmwm/subscriptions","organizations_url":"https://api.github.com/users/dmwm/orgs","repos_url":"https://api.github.com/users/dmwm/repos","events_url":"https://api.github.com/users/dmwm/events{/privacy}","received_events_url":"https://api.github.com/users/dmwm/received_events","type":"Organization","site_admin":false},"repo":{"id":2370458,"name":"WMCore","full_name":"dmwm/WMCore","owner":{"login":"dmwm","id":988897,"avatar_url":"https://avatars.githubusercontent.com/u/988897?v=3","gravatar_id":"","url":"https://api.github.com/users/dmwm","html_url":"https://github.com/dmwm","followers_url":"https://api.github.com/users/dmwm/followers","following_url":"https://api.github.com/users/dmwm/following{/other_user}","gists_url":"https://api.github.com/users/dmwm/gists{/gist_id}","starred_url":"https://api.github.com/users/dmwm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmwm/subscriptions","organizations_url":"https://api.github.com/users/dmwm/orgs","repos_url":"https://api.github.com/users/dmwm/repos","events_url":"https://api.github.com/users/dmwm/events{/privacy}","received_events_url":"https://api.github.com/users/dmwm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dmwm/WMCore","description":"WMCore","fork":false,"url":"https://api.github.com/repos/dmwm/WMCore","forks_url":"https://api.github.com/repos/dmwm/WMCore/forks","keys_url":"https://api.github.com/repos/dmwm/WMCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmwm/WMCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmwm/WMCore/teams","hooks_url":"https://api.github.com/repos/dmwm/WMCore/hooks","issue_events_url":"https://api.github.com/repos/dmwm/WMCore/issues/events{/number}","events_url":"https://api.github.com/repos/dmwm/WMCore/events","assignees_url":"https://api.github.com/repos/dmwm/WMCore/assignees{/user}","branches_url":"https://api.github.com/repos/dmwm/WMCore/branches{/branch}","tags_url":"https://api.github.com/repos/dmwm/WMCore/tags","blobs_url":"https://api.github.com/repos/dmwm/WMCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmwm/WMCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmwm/WMCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmwm/WMCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmwm/WMCore/statuses/{sha}","languages_url":"https://api.github.com/repos/dmwm/WMCore/languages","stargazers_url":"https://api.github.com/repos/dmwm/WMCore/stargazers","contributors_url":"https://api.github.com/repos/dmwm/WMCore/contributors","subscribers_url":"https://api.github.com/repos/dmwm/WMCore/subscribers","subscription_url":"https://api.github.com/repos/dmwm/WMCore/subscription","commits_url":"https://api.github.com/repos/dmwm/WMCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmwm/WMCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmwm/WMCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmwm/WMCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmwm/WMCore/contents/{+path}","compare_url":"https://api.github.com/repos/dmwm/WMCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmwm/WMCore/merges","archive_url":"https://api.github.com/repos/dmwm/WMCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmwm/WMCore/downloads","issues_url":"https://api.github.com/repos/dmwm/WMCore/issues{/number}","pulls_url":"https://api.github.com/repos/dmwm/WMCore/pulls{/number}","milestones_url":"https://api.github.com/repos/dmwm/WMCore/milestones{/number}","notifications_url":"https://api.github.com/repos/dmwm/WMCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmwm/WMCore/labels{/name}","releases_url":"https://api.github.com/repos/dmwm/WMCore/releases{/id}","deployments_url":"https://api.github.com/repos/dmwm/WMCore/deployments","created_at":"2011-09-12T10:37:21Z","updated_at":"2016-04-07T15:35:34Z","pushed_at":"2016-06-21T14:15:18Z","git_url":"git://github.com/dmwm/WMCore.git","ssh_url":"git@github.com:dmwm/WMCore.git","clone_url":"https://github.com/dmwm/WMCore.git","svn_url":"https://github.com/dmwm/WMCore","homepage":"https://svnweb.cern.ch/trac/CMSDMWM/","size":33595,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":402,"forks":55,"open_issues":402,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/6936"},"html":{"href":"https://github.com/dmwm/WMCore/pull/6936"},"issue":{"href":"https://api.github.com/repos/dmwm/WMCore/issues/6936"},"comments":{"href":"https://api.github.com/repos/dmwm/WMCore/issues/6936/comments"},"review_comments":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/6936/comments"},"review_comment":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/6936/commits"},"statuses":{"href":"https://api.github.com/repos/dmwm/WMCore/statuses/75c3b9563fd2f803583f9f447683fb1fa727eb32"}}}}
{"actor":{"display_login":"jha2"}}