e7230b7391
* seperate unittests and integration tests * moved old tests in seperat folder 'old' * created a testrunner that does not create a testdatabase, if only unittests are run * wrote some unit- and integration tests as examples * fixed user.get_short_name() to use the sort order from config * fixed wrong url_pattern in the user app
20 lines
707 B
Python
20 lines
707 B
Python
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(
|
|
list(test_value.keys()),
|
|
['load_file', 'projector_countdown_start',
|
|
'projector_countdown_duration', 'projector_countdown_pause',
|
|
'projector_countdown_state', 'call'])
|