def test_reindex_registration_elastic(self, mock_update_node): count = AdminLogEntry.objects.count() view = NodeReindexElastic() view = setup_log_view(view, self.request, guid=self.registration._id) view.delete(self.request) nt.assert_true(mock_update_node.called) nt.assert_equal(AdminLogEntry.objects.count(), count + 1)
def test_reindex_node_elastic(self, mock_update_search): count = AdminLogEntry.objects.count() view = NodeReindexElastic() view = setup_log_view(view, self.request, guid=self.node._id) view.delete(self.request) nt.assert_true(mock_update_search.called) nt.assert_equal(AdminLogEntry.objects.count(), count + 1)
def test_reindex_registration_elastic(self, mock_update_node): count = AdminLogEntry.objects.count() view = NodeReindexElastic() view = setup_log_view(view, self.request, guid=self.registration._id) view.post(self.request) nt.assert_true(mock_update_node.called) nt.assert_equal(AdminLogEntry.objects.count(), count + 1)
def test_reindex_node_elastic(self): count = AdminLogEntry.objects.count() view = NodeReindexElastic() view = setup_log_view(view, self.request, guid=self.node._id) view.delete(self.request) nt.assert_true(self.mock_reindex_elastic.called) nt.assert_equal(AdminLogEntry.objects.count(), count + 1)