{"action":"created","comment":{"url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/comments/105903817","pull_request_review_id":26802537,"id":105903817,"diff_hunk":"@@ -93,6 +93,33 @@ def test_add_adapter(self):\n \n         self.assertRaises(RuntimeError, collection.add_adapter, DummyAdapter('bar'))\n \n+    def test_set_device(self):\n+        mock_adapter1 = MagicMock()\n+        mock_adapter2 = MagicMock()\n+\n+        collection = AdapterCollection(mock_adapter1, mock_adapter2)\n+        collection.device = 'foo'\n+\n+        self.assertEqual(mock_adapter1.device, 'foo')\n+        self.assertEqual(mock_adapter1.device, 'foo')","path":"test/test_core_adapters.py","position":20,"original_position":20,"commit_id":"1a5221ba44b89a01c68d14e29a85bae31f3a9bf4","original_commit_id":"1a5221ba44b89a01c68d14e29a85bae31f3a9bf4","user":{"login":"MikeHart85","id":12586704,"avatar_url":"https://avatars0.githubusercontent.com/u/12586704?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeHart85","html_url":"https://github.com/MikeHart85","followers_url":"https://api.github.com/users/MikeHart85/followers","following_url":"https://api.github.com/users/MikeHart85/following{/other_user}","gists_url":"https://api.github.com/users/MikeHart85/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeHart85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeHart85/subscriptions","organizations_url":"https://api.github.com/users/MikeHart85/orgs","repos_url":"https://api.github.com/users/MikeHart85/repos","events_url":"https://api.github.com/users/MikeHart85/events{/privacy}","received_events_url":"https://api.github.com/users/MikeHart85/received_events","type":"User","site_admin":false},"body":"I think this was meant to be `mock_adapter2.device`?","created_at":"2017-03-14T13:20:16Z","updated_at":"2017-03-14T13:33:02Z","html_url":"https://github.com/DMSC-Instrument-Data/lewis/pull/212#discussion_r105903817","pull_request_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/212","_links":{"self":{"href":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/comments/105903817"},"html":{"href":"https://github.com/DMSC-Instrument-Data/lewis/pull/212#discussion_r105903817"},"pull_request":{"href":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/212"}}},"pull_request":{"url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/212","id":110120748,"html_url":"https://github.com/DMSC-Instrument-Data/lewis/pull/212","diff_url":"https://github.com/DMSC-Instrument-Data/lewis/pull/212.diff","patch_url":"https://github.com/DMSC-Instrument-Data/lewis/pull/212.patch","issue_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/issues/212","number":212,"state":"open","locked":false,"title":"Allow switching setups at runtime","user":{"login":"MichaelWedel","id":6361996,"avatar_url":"https://avatars3.githubusercontent.com/u/6361996?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelWedel","html_url":"https://github.com/MichaelWedel","followers_url":"https://api.github.com/users/MichaelWedel/followers","following_url":"https://api.github.com/users/MichaelWedel/following{/other_user}","gists_url":"https://api.github.com/users/MichaelWedel/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelWedel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelWedel/subscriptions","organizations_url":"https://api.github.com/users/MichaelWedel/orgs","repos_url":"https://api.github.com/users/MichaelWedel/repos","events_url":"https://api.github.com/users/MichaelWedel/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelWedel/received_events","type":"User","site_admin":false},"body":"This fixes #98.\r\n\r\nWith these changes it is possible to switch the setup at runtime via the control server. The functionality is implemented in `Simulation`.\r\n\r\nI expect the implementation to change somewhat when all the adapter-related issues are taken up in the next release, so this implementation is very focused on providing only this new capability and nothing else.","created_at":"2017-03-10T12:38:55Z","updated_at":"2017-03-14T13:33:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07bf612f39b6ba06cb2e5dff4855ae28ec0e0314","assignee":{"login":"MikeHart85","id":12586704,"avatar_url":"https://avatars0.githubusercontent.com/u/12586704?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeHart85","html_url":"https://github.com/MikeHart85","followers_url":"https://api.github.com/users/MikeHart85/followers","following_url":"https://api.github.com/users/MikeHart85/following{/other_user}","gists_url":"https://api.github.com/users/MikeHart85/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeHart85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeHart85/subscriptions","organizations_url":"https://api.github.com/users/MikeHart85/orgs","repos_url":"https://api.github.com/users/MikeHart85/repos","events_url":"https://api.github.com/users/MikeHart85/events{/privacy}","received_events_url":"https://api.github.com/users/MikeHart85/received_events","type":"User","site_admin":false},"assignees":[{"login":"MikeHart85","id":12586704,"avatar_url":"https://avatars0.githubusercontent.com/u/12586704?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeHart85","html_url":"https://github.com/MikeHart85","followers_url":"https://api.github.com/users/MikeHart85/followers","following_url":"https://api.github.com/users/MikeHart85/following{/other_user}","gists_url":"https://api.github.com/users/MikeHart85/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeHart85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeHart85/subscriptions","organizations_url":"https://api.github.com/users/MikeHart85/orgs","repos_url":"https://api.github.com/users/MikeHart85/repos","events_url":"https://api.github.com/users/MikeHart85/events{/privacy}","received_events_url":"https://api.github.com/users/MikeHart85/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/milestones/4","html_url":"https://github.com/DMSC-Instrument-Data/lewis/milestone/4","labels_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/milestones/4/labels","id":2237122,"number":4,"title":"Release 1.0.3","description":"","creator":{"login":"MichaelWedel","id":6361996,"avatar_url":"https://avatars3.githubusercontent.com/u/6361996?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelWedel","html_url":"https://github.com/MichaelWedel","followers_url":"https://api.github.com/users/MichaelWedel/followers","following_url":"https://api.github.com/users/MichaelWedel/following{/other_user}","gists_url":"https://api.github.com/users/MichaelWedel/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelWedel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelWedel/subscriptions","organizations_url":"https://api.github.com/users/MichaelWedel/orgs","repos_url":"https://api.github.com/users/MichaelWedel/repos","events_url":"https://api.github.com/users/MichaelWedel/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelWedel/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":17,"state":"open","created_at":"2017-01-09T14:33:35Z","updated_at":"2017-03-14T12:42:03Z","due_on":"2017-03-27T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/212/commits","review_comments_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/212/comments","review_comment_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/issues/212/comments","statuses_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/statuses/1a5221ba44b89a01c68d14e29a85bae31f3a9bf4","head":{"label":"DMSC-Instrument-Data:98_switch_setups_at_runtime","ref":"98_switch_setups_at_runtime","sha":"1a5221ba44b89a01c68d14e29a85bae31f3a9bf4","user":{"login":"DMSC-Instrument-Data","id":15102351,"avatar_url":"https://avatars3.githubusercontent.com/u/15102351?v=3","gravatar_id":"","url":"https://api.github.com/users/DMSC-Instrument-Data","html_url":"https://github.com/DMSC-Instrument-Data","followers_url":"https://api.github.com/users/DMSC-Instrument-Data/followers","following_url":"https://api.github.com/users/DMSC-Instrument-Data/following{/other_user}","gists_url":"https://api.github.com/users/DMSC-Instrument-Data/gists{/gist_id}","starred_url":"https://api.github.com/users/DMSC-Instrument-Data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DMSC-Instrument-Data/subscriptions","organizations_url":"https://api.github.com/users/DMSC-Instrument-Data/orgs","repos_url":"https://api.github.com/users/DMSC-Instrument-Data/repos","events_url":"https://api.github.com/users/DMSC-Instrument-Data/events{/privacy}","received_events_url":"https://api.github.com/users/DMSC-Instrument-Data/received_events","type":"Organization","site_admin":false},"repo":{"id":55496490,"name":"lewis","full_name":"DMSC-Instrument-Data/lewis","owner":{"login":"DMSC-Instrument-Data","id":15102351,"avatar_url":"https://avatars3.githubusercontent.com/u/15102351?v=3","gravatar_id":"","url":"https://api.github.com/users/DMSC-Instrument-Data","html_url":"https://github.com/DMSC-Instrument-Data","followers_url":"https://api.github.com/users/DMSC-Instrument-Data/followers","following_url":"https://api.github.com/users/DMSC-Instrument-Data/following{/other_user}","gists_url":"https://api.github.com/users/DMSC-Instrument-Data/gists{/gist_id}","starred_url":"https://api.github.com/users/DMSC-Instrument-Data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DMSC-Instrument-Data/subscriptions","organizations_url":"https://api.github.com/users/DMSC-Instrument-Data/orgs","repos_url":"https://api.github.com/users/DMSC-Instrument-Data/repos","events_url":"https://api.github.com/users/DMSC-Instrument-Data/events{/privacy}","received_events_url":"https://api.github.com/users/DMSC-Instrument-Data/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DMSC-Instrument-Data/lewis","description":"Let's Write Intricate Simulators!","fork":false,"url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis","forks_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/forks","keys_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/teams","hooks_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/hooks","issue_events_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/issues/events{/number}","events_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/events","assignees_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/assignees{/user}","branches_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/branches{/branch}","tags_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/tags","blobs_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/git/refs{/sha}","trees_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/statuses/{sha}","languages_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/languages","stargazers_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/stargazers","contributors_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/contributors","subscribers_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/subscribers","subscription_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/subscription","commits_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/commits{/sha}","git_commits_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/git/commits{/sha}","comments_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/comments{/number}","issue_comment_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/issues/comments{/number}","contents_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/contents/{+path}","compare_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/merges","archive_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/downloads","issues_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/issues{/number}","pulls_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls{/number}","milestones_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/milestones{/number}","notifications_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/labels{/name}","releases_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/releases{/id}","deployments_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/deployments","created_at":"2016-04-05T09:50:19Z","updated_at":"2017-03-08T09:30:08Z","pushed_at":"2017-03-14T12:42:06Z","git_url":"git://github.com/DMSC-Instrument-Data/lewis.git","ssh_url":"git@github.com:DMSC-Instrument-Data/lewis.git","clone_url":"https://github.com/DMSC-Instrument-Data/lewis.git","svn_url":"https://github.com/DMSC-Instrument-Data/lewis","homepage":"","size":847,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":23,"forks":4,"open_issues":23,"watchers":6,"default_branch":"master"}},"base":{"label":"DMSC-Instrument-Data:master","ref":"master","sha":"5b9956d3d3af66750058880681759079ae634538","user":{"login":"DMSC-Instrument-Data","id":15102351,"avatar_url":"https://avatars3.githubusercontent.com/u/15102351?v=3","gravatar_id":"","url":"https://api.github.com/users/DMSC-Instrument-Data","html_url":"https://github.com/DMSC-Instrument-Data","followers_url":"https://api.github.com/users/DMSC-Instrument-Data/followers","following_url":"https://api.github.com/users/DMSC-Instrument-Data/following{/other_user}","gists_url":"https://api.github.com/users/DMSC-Instrument-Data/gists{/gist_id}","starred_url":"https://api.github.com/users/DMSC-Instrument-Data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DMSC-Instrument-Data/subscriptions","organizations_url":"https://api.github.com/users/DMSC-Instrument-Data/orgs","repos_url":"https://api.github.com/users/DMSC-Instrument-Data/repos","events_url":"https://api.github.com/users/DMSC-Instrument-Data/events{/privacy}","received_events_url":"https://api.github.com/users/DMSC-Instrument-Data/received_events","type":"Organization","site_admin":false},"repo":{"id":55496490,"name":"lewis","full_name":"DMSC-Instrument-Data/lewis","owner":{"login":"DMSC-Instrument-Data","id":15102351,"avatar_url":"https://avatars3.githubusercontent.com/u/15102351?v=3","gravatar_id":"","url":"https://api.github.com/users/DMSC-Instrument-Data","html_url":"https://github.com/DMSC-Instrument-Data","followers_url":"https://api.github.com/users/DMSC-Instrument-Data/followers","following_url":"https://api.github.com/users/DMSC-Instrument-Data/following{/other_user}","gists_url":"https://api.github.com/users/DMSC-Instrument-Data/gists{/gist_id}","starred_url":"https://api.github.com/users/DMSC-Instrument-Data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DMSC-Instrument-Data/subscriptions","organizations_url":"https://api.github.com/users/DMSC-Instrument-Data/orgs","repos_url":"https://api.github.com/users/DMSC-Instrument-Data/repos","events_url":"https://api.github.com/users/DMSC-Instrument-Data/events{/privacy}","received_events_url":"https://api.github.com/users/DMSC-Instrument-Data/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DMSC-Instrument-Data/lewis","description":"Let's Write Intricate Simulators!","fork":false,"url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis","forks_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/forks","keys_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/teams","hooks_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/hooks","issue_events_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/issues/events{/number}","events_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/events","assignees_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/assignees{/user}","branches_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/branches{/branch}","tags_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/tags","blobs_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/git/refs{/sha}","trees_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/statuses/{sha}","languages_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/languages","stargazers_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/stargazers","contributors_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/contributors","subscribers_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/subscribers","subscription_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/subscription","commits_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/commits{/sha}","git_commits_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/git/commits{/sha}","comments_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/comments{/number}","issue_comment_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/issues/comments{/number}","contents_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/contents/{+path}","compare_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/merges","archive_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/downloads","issues_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/issues{/number}","pulls_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls{/number}","milestones_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/milestones{/number}","notifications_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/labels{/name}","releases_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/releases{/id}","deployments_url":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/deployments","created_at":"2016-04-05T09:50:19Z","updated_at":"2017-03-08T09:30:08Z","pushed_at":"2017-03-14T12:42:06Z","git_url":"git://github.com/DMSC-Instrument-Data/lewis.git","ssh_url":"git@github.com:DMSC-Instrument-Data/lewis.git","clone_url":"https://github.com/DMSC-Instrument-Data/lewis.git","svn_url":"https://github.com/DMSC-Instrument-Data/lewis","homepage":"","size":847,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":23,"forks":4,"open_issues":23,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/212"},"html":{"href":"https://github.com/DMSC-Instrument-Data/lewis/pull/212"},"issue":{"href":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/issues/212"},"comments":{"href":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/issues/212/comments"},"review_comments":{"href":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/212/comments"},"review_comment":{"href":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/pulls/212/commits"},"statuses":{"href":"https://api.github.com/repos/DMSC-Instrument-Data/lewis/statuses/1a5221ba44b89a01c68d14e29a85bae31f3a9bf4"}}}}
{"actor":{"display_login":"MikeHart85"}}