fixed the tests for list of speakers

This commit is contained in:
Oskar Hahn 2014-05-19 15:32:44 +02:00
parent 16a6ad4a9e
commit 9b4d7f37a5

View File

@ -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()