typo fixing (issue #2181)
This commit is contained in:
parent
c55bf5f524
commit
5061ea1770
@ -23,8 +23,8 @@ class AgendaAppConfig(AppConfig):
|
||||
listen_to_related_object_post_save)
|
||||
from .views import ItemViewSet
|
||||
|
||||
# Define config varialbes
|
||||
config.update_config_varialbes(get_config_variables())
|
||||
# Define config variables
|
||||
config.update_config_variables(get_config_variables())
|
||||
|
||||
# Connect signals.
|
||||
post_save.connect(
|
||||
|
@ -20,7 +20,7 @@ class AssignmentsAppConfig(AppConfig):
|
||||
from .views import AssignmentViewSet, AssignmentPollViewSet
|
||||
|
||||
# Define config variables
|
||||
config.update_config_varialbes(get_config_variables())
|
||||
config.update_config_variables(get_config_variables())
|
||||
|
||||
# Register viewsets.
|
||||
router.register(self.get_model('Assignment').get_collection_string(), AssignmentViewSet)
|
||||
|
@ -31,7 +31,7 @@ class CoreAppConfig(AppConfig):
|
||||
)
|
||||
|
||||
# Define config variables
|
||||
config.update_config_varialbes(get_config_variables())
|
||||
config.update_config_variables(get_config_variables())
|
||||
|
||||
# Connect signals.
|
||||
post_permission_creation.connect(
|
||||
|
@ -93,7 +93,7 @@ class ConfigHandler:
|
||||
if config_variable.on_change:
|
||||
config_variable.on_change()
|
||||
|
||||
def update_config_varialbes(self, items):
|
||||
def update_config_variables(self, items):
|
||||
"""
|
||||
Updates the config_variables dict.
|
||||
|
||||
|
@ -21,8 +21,8 @@ class MotionsAppConfig(AppConfig):
|
||||
from .signals import create_builtin_workflows
|
||||
from .views import CategoryViewSet, MotionViewSet, MotionPollViewSet, WorkflowViewSet
|
||||
|
||||
# Define config varialbes
|
||||
config.update_config_varialbes(get_config_variables())
|
||||
# Define config variables
|
||||
config.update_config_variables(get_config_variables())
|
||||
|
||||
# Connect signals.
|
||||
post_migrate.connect(create_builtin_workflows, dispatch_uid='motion_create_builtin_workflows')
|
||||
|
@ -22,7 +22,7 @@ class UsersAppConfig(AppConfig):
|
||||
from .views import GroupViewSet, UserViewSet
|
||||
|
||||
# Define config variables
|
||||
config.update_config_varialbes(get_config_variables())
|
||||
config.update_config_variables(get_config_variables())
|
||||
|
||||
# Connect signals.
|
||||
post_permission_creation.connect(
|
||||
|
@ -82,7 +82,7 @@ class ConfigViewSet(TestCase):
|
||||
Tests requests to deal with config variables.
|
||||
"""
|
||||
def setUp(self):
|
||||
config.update_config_varialbes(set_simple_config_view_integration_config_test())
|
||||
config.update_config_variables(set_simple_config_view_integration_config_test())
|
||||
|
||||
def tearDown(self):
|
||||
# Reset the config variables
|
||||
|
@ -14,11 +14,11 @@ config = ConfigHandler()
|
||||
@patch('openslides.core.config.config', config)
|
||||
class HandleConfigTest(TestCase):
|
||||
def setUp(self):
|
||||
config.update_config_varialbes(set_grouped_config_view())
|
||||
config.update_config_varialbes(set_simple_config_view())
|
||||
config.update_config_varialbes(set_simple_config_view_multiple_vars())
|
||||
config.update_config_varialbes(set_simple_config_collection_disabled_view())
|
||||
config.update_config_varialbes(set_simple_config_collection_with_callback())
|
||||
config.update_config_variables(set_grouped_config_view())
|
||||
config.update_config_variables(set_simple_config_view())
|
||||
config.update_config_variables(set_simple_config_view_multiple_vars())
|
||||
config.update_config_variables(set_simple_config_collection_disabled_view())
|
||||
config.update_config_variables(set_simple_config_collection_with_callback())
|
||||
|
||||
def tearDown(self):
|
||||
# Reset the config variables
|
||||
@ -45,7 +45,7 @@ class HandleConfigTest(TestCase):
|
||||
with self.assertRaisesMessage(
|
||||
ConfigError,
|
||||
'Too many values for config variable multiple_config_var found.'):
|
||||
config.update_config_varialbes(set_simple_config_view_multiple_vars())
|
||||
config.update_config_variables(set_simple_config_view_multiple_vars())
|
||||
|
||||
def test_setup_config_var(self):
|
||||
self.assertRaises(TypeError, ConfigVariable)
|
||||
|
Loading…
Reference in New Issue
Block a user