Remove old test for checking translation string on server-side.

(Config translations are moved to client-side.)
This commit is contained in:
Emanuel Schuetze 2016-08-25 17:15:49 +02:00
parent cfdb90f6a7
commit 53d5946116

View File

@ -2,7 +2,6 @@ import os
import sys import sys
from unittest.mock import MagicMock, patch from unittest.mock import MagicMock, patch
from openslides.core.config import config
from openslides.utils import main from openslides.utils import main
from openslides.utils.test import TestCase from openslides.utils.test import TestCase
@ -86,8 +85,3 @@ class TestFunctions(TestCase):
inner_function = mock_Thread.call_args[1]['target'] inner_function = mock_Thread.call_args[1]['target']
inner_function() inner_function()
browser_mock.open.assert_called_with('http://localhost:8234') browser_mock.open.assert_called_with('http://localhost:8234')
def test_translate_customizable_strings(self):
self.assertEqual(config['general_event_description'], 'Presentation and assembly system')
main.translate_customizable_strings('de')
self.assertEqual(config['general_event_description'], u'Präsentations- und Versammlungssystem')