From 9b4d7f37a5c8cff762f08b3fcb2a479aad65fba2 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Mon, 19 May 2014 15:32:44 +0200 Subject: [PATCH] fixed the tests for list of speakers --- tests/agenda/test_list_of_speakers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/agenda/test_list_of_speakers.py b/tests/agenda/test_list_of_speakers.py index b9dac9960..eed2be788 100644 --- a/tests/agenda/test_list_of_speakers.py +++ b/tests/agenda/test_list_of_speakers.py @@ -266,9 +266,14 @@ class GlobalListOfSpeakersLinks(SpeakerViewTestCase): response = self.speaker2_client.get('/agenda/list_of_speakers/add/') self.assertMessage(response, 'You were successfully added to the list of speakers.') + @patch('openslides.projector.api.slide_callback', {}) + @patch('openslides.projector.api.slide_model', {}) def test_next_speaker_on_related_item(self): """ Test to add a speaker on a related item. + + The patching of slide_callback and slide_model is needed to cleanup the + call of register_slide_model after the test is run. """ register_slide_model(RelatedItem, 'some/template.html') related_item = RelatedItem.objects.create()