OpenSlides/tests/projector/test_signals.py
Oskar Hahn f8048da76c Fixed countdown and projector update issues
* agenda_item.get_absolute_url('projector') returns the activate-url of the related slide.
* agenda_item.is_activate() returns True, if the related item is active
* Fixed set_active_slide to accept kwargs
* Reset countdown when saving a new duration time
* Update countdown overlay when begin_speak and end_speak is called
* Fixed blinking countdown

Fixes: #1078, #1076, #1075
2013-11-24 10:04:01 +01:00

22 lines
726 B
Python

# -*- coding: utf-8 -*-
from openslides.projector.signals import countdown
from openslides.utils.test import TestCase
class CountdownTest(TestCase):
def test_order_of_get_projector_js(self):
"""
Tests that the order of the js values is in the right order. Especially
the value 'call' has to come at the end.
"""
overlay = countdown('fake sender')
test_value = overlay.get_javascript()
self.assertIsInstance(test_value, dict)
self.assertEqual(
test_value.keys(),
['load_file', 'projector_countdown_start',
'projector_countdown_duration', 'projector_countdown_pause',
'projector_countdown_state', 'call'])