)]}'
{"nova/tests/unit/scheduler/client/test_report.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"58ae3901c779580ad6eebf8096e485eb8edd9edd","unresolved":true,"context_lines":[{"line_number":3108,"context_line":"        self.assert_getters_not_called()"},{"line_number":3109,"context_line":""},{"line_number":3110,"context_line":"    @mock.patch.object(report.LOG, \u0027debug\u0027)"},{"line_number":3111,"context_line":"    def test_refresh_associations_time(self, log_mock):"},{"line_number":3112,"context_line":"        \"\"\"Test that refresh associations is called when the map is stale.\"\"\""},{"line_number":3113,"context_line":"        uuid \u003d uuids.compute_node"},{"line_number":3114,"context_line":"        # Seed the provider tree so _refresh_associations finds the provider"}],"source_content_type":"text/x-python","patch_set":1,"id":"a8b9b744_2a61530e","line":3111,"updated":"2021-06-03 19:04:58.000000000","message":"as noted on irc i think you can also \n@mock.patch.object(time, \u0027time\u0027, return_val\u003dtime.time())","commit_id":"89e74a1577ce45eaf538ec125e5ad9d330a92df6"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"c176d4b304c84d4a03b84d6864ed58e7b73930f1","unresolved":true,"context_lines":[{"line_number":3108,"context_line":"        self.assert_getters_not_called()"},{"line_number":3109,"context_line":""},{"line_number":3110,"context_line":"    @mock.patch.object(report.LOG, \u0027debug\u0027)"},{"line_number":3111,"context_line":"    def test_refresh_associations_time(self, log_mock):"},{"line_number":3112,"context_line":"        \"\"\"Test that refresh associations is called when the map is stale.\"\"\""},{"line_number":3113,"context_line":"        uuid \u003d uuids.compute_node"},{"line_number":3114,"context_line":"        # Seed the provider tree so _refresh_associations finds the provider"}],"source_content_type":"text/x-python","patch_set":1,"id":"af13527c_5cd1df44","line":3111,"in_reply_to":"a8b9b744_2a61530e","updated":"2021-06-03 19:06:52.000000000","message":"you need to make this \n def test_refresh_associations_time(self, log_mock,time_mock):","commit_id":"89e74a1577ce45eaf538ec125e5ad9d330a92df6"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"05990f6d3d7e0183f953bef6b171854790c816eb","unresolved":true,"context_lines":[{"line_number":3108,"context_line":"        self.assert_getters_not_called()"},{"line_number":3109,"context_line":""},{"line_number":3110,"context_line":"    @mock.patch.object(report.LOG, \u0027debug\u0027)"},{"line_number":3111,"context_line":"    def test_refresh_associations_time(self, log_mock):"},{"line_number":3112,"context_line":"        \"\"\"Test that refresh associations is called when the map is stale.\"\"\""},{"line_number":3113,"context_line":"        uuid \u003d uuids.compute_node"},{"line_number":3114,"context_line":"        # Seed the provider tree so _refresh_associations finds the provider"}],"source_content_type":"text/x-python","patch_set":1,"id":"a270ea57_b099c918","line":3111,"in_reply_to":"af13527c_5cd1df44","updated":"2021-06-03 19:30:59.000000000","message":"Thanks, done.","commit_id":"89e74a1577ce45eaf538ec125e5ad9d330a92df6"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"c176d4b304c84d4a03b84d6864ed58e7b73930f1","unresolved":true,"context_lines":[{"line_number":3136,"context_line":"        # Clear call count."},{"line_number":3137,"context_line":"        self.reset_getter_mocks()"},{"line_number":3138,"context_line":""},{"line_number":3139,"context_line":"        with mock.patch(\u0027time.time\u0027) as mock_future:"},{"line_number":3140,"context_line":"            # Not called a second time because not enough time has passed."},{"line_number":3141,"context_line":"            mock_future.return_value \u003d (now +"},{"line_number":3142,"context_line":"                CONF.compute.resource_provider_association_refresh / 2)"}],"source_content_type":"text/x-python","patch_set":1,"id":"81a4b74e_9d0de27d","line":3139,"range":{"start_line":3139,"start_character":40,"end_line":3139,"end_character":51},"updated":"2021-06-03 19:06:52.000000000","message":"you can then just get rid fo this and replace all referecne to it with time_mock","commit_id":"89e74a1577ce45eaf538ec125e5ad9d330a92df6"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"068e98a16eb7de0073b833fcccf19372f9245d17","unresolved":true,"context_lines":[{"line_number":3118,"context_line":"        # Called a first time because association_refresh_time is empty."},{"line_number":3119,"context_line":"        now \u003d mock_time.return_value"},{"line_number":3120,"context_line":"        self.client._refresh_associations(self.context, uuid)"},{"line_number":3121,"context_line":""},{"line_number":3122,"context_line":"        self.assert_getters_were_called(uuid)"},{"line_number":3123,"context_line":"        log_mock.assert_has_calls(["},{"line_number":3124,"context_line":"            mock.call(\u0027Refreshing inventories for resource provider %s\u0027, uuid),"}],"source_content_type":"text/x-python","patch_set":2,"id":"a78f7ee0_68ecb0fb","line":3121,"updated":"2021-06-03 19:29:17.000000000","message":"Guh, didn\u0027t notice I added a newline.","commit_id":"1e37250221fb798904b7fbfae6cb566f19e2bdf1"}]}
