)]}'
{"monasca_persister/tests/test_retry_policy.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"109e06ae3510cf39eeef260b67d2bd547367605b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# (C) Copyright 2017 SUSE LLC"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":2,"id":"3fce034c_eeda3149","line":1,"range":{"start_line":1,"start_character":16,"end_line":1,"end_character":29},"updated":"2019-04-18 13:16:23.000000000","message":"change license to `2019 Fujitsu Limited`","commit_id":"3fc9e479bb14565e0ac76d3d3226442fb46271da"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"109e06ae3510cf39eeef260b67d2bd547367605b","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# implied."},{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":"from mock import Mock"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from oslotest import base"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3fce034c_aee8a9e1","line":15,"updated":"2019-04-18 13:16:23.000000000","message":"add separate line between license header and code","commit_id":"3fc9e479bb14565e0ac76d3d3226442fb46271da"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"109e06ae3510cf39eeef260b67d2bd547367605b","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    def tearDown(self):"},{"line_number":28,"context_line":"        super(TestMonascaRetryPolicy, self).tearDown()"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def test_on_read_timeout_returns_rethrow_and_none(self):"},{"line_number":31,"context_line":"        self.monasca_retry_policy.read_attempts \u003d 0"},{"line_number":32,"context_line":"        rethrow, none \u003d self.monasca_retry_policy.on_read_timeout(Mock(), Mock(), Mock(), 0, 0, 1)"},{"line_number":33,"context_line":"        self.assertEqual(rethrow, self.monasca_retry_policy.RETHROW)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3fce034c_6e4641c3","line":30,"range":{"start_line":30,"start_character":29,"end_line":30,"end_character":53},"updated":"2019-04-18 13:16:23.000000000","message":"This is comment for the whole file:\nI don\u0027t think we are using anywhere else `returns` in test names, and from my point of view this names are useless.\nPlease, talk with Adrian about good test names (I\u0027m going to long vacations :D )","commit_id":"3fc9e479bb14565e0ac76d3d3226442fb46271da"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"109e06ae3510cf39eeef260b67d2bd547367605b","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        self.assertEqual(returned_retry, self.monasca_retry_policy.RETRY)"},{"line_number":47,"context_line":"        self.assertEqual(consistency, returned_consistency)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def test_on_read_timeout_return_rethrow_and_none_if_conditions_fail(self):"},{"line_number":50,"context_line":"        consistency \u003d \u0027some_value\u0027"},{"line_number":51,"context_line":"        received_responses \u003d 1"},{"line_number":52,"context_line":"        required_reponses \u003d 0"}],"source_content_type":"text/x-python","patch_set":2,"id":"3fce034c_2e16f9a9","line":49,"range":{"start_line":49,"start_character":34,"end_line":49,"end_character":36},"updated":"2019-04-18 13:16:23.000000000","message":"s","commit_id":"3fc9e479bb14565e0ac76d3d3226442fb46271da"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"109e06ae3510cf39eeef260b67d2bd547367605b","unresolved":false,"context_lines":[{"line_number":57,"context_line":"            on_read_timeout(Mock(), consistency, required_reponses,"},{"line_number":58,"context_line":"                            received_responses, data_retrieved, retry_num)"},{"line_number":59,"context_line":"        self.assertEqual(returned_rethrow, self.monasca_retry_policy.RETHROW)"},{"line_number":60,"context_line":"        self.assertEqual(None, returned_none)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def test_on_write_timeout_returns_rethrow_and_none(self):"},{"line_number":63,"context_line":"        retry_num \u003d 1"}],"source_content_type":"text/x-python","patch_set":2,"id":"3fce034c_8ec4cd60","line":60,"range":{"start_line":60,"start_character":25,"end_line":60,"end_character":44},"updated":"2019-04-18 13:16:23.000000000","message":"stick to one order, first what returned and last what expect or vice versa, this comment is for the whole file (you should ask Adrian for order he is using now)","commit_id":"3fc9e479bb14565e0ac76d3d3226442fb46271da"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"109e06ae3510cf39eeef260b67d2bd547367605b","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        retry_num \u003d 0"},{"line_number":82,"context_line":"        self.monasca_retry_policy.unavailable_attempts \u003d 1"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        (returned_retry_next_host, returned_consistency) \u003d \\"},{"line_number":85,"context_line":"            self.monasca_retry_policy.on_unavailable(Mock(), consistency, 0, 0, retry_num)"},{"line_number":86,"context_line":"        self.assertEqual(returned_consistency, consistency)"},{"line_number":87,"context_line":"        self.assertEqual(returned_retry_next_host, self.monasca_retry_policy.RETRY_NEXT_HOST)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3fce034c_ce93b55a","line":84,"range":{"start_line":84,"start_character":8,"end_line":84,"end_character":56},"updated":"2019-04-18 13:16:23.000000000","message":"why braces here?","commit_id":"3fc9e479bb14565e0ac76d3d3226442fb46271da"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"109e06ae3510cf39eeef260b67d2bd547367605b","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        retry_num \u003d 1"},{"line_number":92,"context_line":"        self.monasca_retry_policy.unavailable_attempts \u003d 1"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        (returned_rethrow, returned_none) \u003d \\"},{"line_number":95,"context_line":"            self.monasca_retry_policy.on_unavailable(Mock(), consistency, 0, 0, retry_num)"},{"line_number":96,"context_line":"        self.assertEqual(returned_none, None)"},{"line_number":97,"context_line":"        self.assertEqual(returned_rethrow, self.monasca_retry_policy.RETHROW)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3fce034c_6e9c016a","line":94,"range":{"start_line":94,"start_character":8,"end_line":94,"end_character":41},"updated":"2019-04-18 13:16:23.000000000","message":"why braces here?","commit_id":"3fc9e479bb14565e0ac76d3d3226442fb46271da"}]}
