)]}'
{"openstack_dashboard/test/settings.py":[{"author":{"_account_id":11592,"name":"Julie Gravel","email":"julie.gravel@suse.com","username":"jgravel"},"change_message_id":"035393bd7f052553e0d704b9b97f899fb35f77df","unresolved":false,"context_lines":[{"line_number":265,"context_line":"# --------------------"},{"line_number":266,"context_line":"# TEST_GLOBAL_MOCKS_ON_PANELS: defines what and how methods should be"},{"line_number":267,"context_line":"# mocked globally for unit tests and Selenium tests."},{"line_number":268,"context_line":"# \u0027method\u0027 is required. \u0027return_value\u0027 and \u0027side_effect\u0027"},{"line_number":269,"context_line":"# are optional and passed to mock.patch()."},{"line_number":270,"context_line":"TEST_GLOBAL_MOCKS_ON_PANELS \u003d {"},{"line_number":271,"context_line":"    \u0027aggregates\u0027: {"}],"source_content_type":"text/x-python","patch_set":1,"id":"5ff73747_21867dba","line":268,"updated":"2017-05-01 19:57:58.000000000","message":"I don\u0027t see \u0027side_effect\u0027 defined or used anywhere. Is this intentional for future usage?","commit_id":"b0a5f30248ac905f676f9ad77f1632430a3acc2e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"78cadb042198e8631dae6ba4b6bb9d6dab15951f","unresolved":false,"context_lines":[{"line_number":265,"context_line":"# --------------------"},{"line_number":266,"context_line":"# TEST_GLOBAL_MOCKS_ON_PANELS: defines what and how methods should be"},{"line_number":267,"context_line":"# mocked globally for unit tests and Selenium tests."},{"line_number":268,"context_line":"# \u0027method\u0027 is required. \u0027return_value\u0027 and \u0027side_effect\u0027"},{"line_number":269,"context_line":"# are optional and passed to mock.patch()."},{"line_number":270,"context_line":"TEST_GLOBAL_MOCKS_ON_PANELS \u003d {"},{"line_number":271,"context_line":"    \u0027aggregates\u0027: {"}],"source_content_type":"text/x-python","patch_set":1,"id":"5ff73747_58e137d0","line":268,"in_reply_to":"5ff73747_121270b2","updated":"2017-05-03 17:16:47.000000000","message":"Let me keep it as-is. Thanks.","commit_id":"b0a5f30248ac905f676f9ad77f1632430a3acc2e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"98cd2d1f658ed2525945817f8cd3cbe299f2daf4","unresolved":false,"context_lines":[{"line_number":265,"context_line":"# --------------------"},{"line_number":266,"context_line":"# TEST_GLOBAL_MOCKS_ON_PANELS: defines what and how methods should be"},{"line_number":267,"context_line":"# mocked globally for unit tests and Selenium tests."},{"line_number":268,"context_line":"# \u0027method\u0027 is required. \u0027return_value\u0027 and \u0027side_effect\u0027"},{"line_number":269,"context_line":"# are optional and passed to mock.patch()."},{"line_number":270,"context_line":"TEST_GLOBAL_MOCKS_ON_PANELS \u003d {"},{"line_number":271,"context_line":"    \u0027aggregates\u0027: {"}],"source_content_type":"text/x-python","patch_set":1,"id":"5ff73747_6ffe6b06","line":268,"in_reply_to":"5ff73747_21867dba","updated":"2017-05-03 15:49:41.000000000","message":"I included side_effect because return_value and side_effect are both common ways to define a return value in mock. return_value is used when a mocked method always returns a same value and side_effect is used if we need more complex patterns (a sequence of values, exceptions and so on).\n\nI am fine with dropping side_effect as side_effect is not actually used in our code base and there may be no need for side_effect as global mocks.","commit_id":"b0a5f30248ac905f676f9ad77f1632430a3acc2e"},{"author":{"_account_id":11592,"name":"Julie Gravel","email":"julie.gravel@suse.com","username":"jgravel"},"change_message_id":"ec380c6ca2beb6840bce647751e6a830ed6d0581","unresolved":false,"context_lines":[{"line_number":265,"context_line":"# --------------------"},{"line_number":266,"context_line":"# TEST_GLOBAL_MOCKS_ON_PANELS: defines what and how methods should be"},{"line_number":267,"context_line":"# mocked globally for unit tests and Selenium tests."},{"line_number":268,"context_line":"# \u0027method\u0027 is required. \u0027return_value\u0027 and \u0027side_effect\u0027"},{"line_number":269,"context_line":"# are optional and passed to mock.patch()."},{"line_number":270,"context_line":"TEST_GLOBAL_MOCKS_ON_PANELS \u003d {"},{"line_number":271,"context_line":"    \u0027aggregates\u0027: {"}],"source_content_type":"text/x-python","patch_set":1,"id":"5ff73747_121270b2","line":268,"in_reply_to":"5ff73747_6ffe6b06","updated":"2017-05-03 16:33:32.000000000","message":"Thanks for your explanation. I\u0027m ok either way (dropping side_effect vs. not).","commit_id":"b0a5f30248ac905f676f9ad77f1632430a3acc2e"}]}
