diff --git a/plinth/modules/coturn/components.py b/plinth/modules/coturn/components.py index 8b8b7372d..b7f91a27f 100644 --- a/plinth/modules/coturn/components.py +++ b/plinth/modules/coturn/components.py @@ -73,7 +73,7 @@ class TurnConsumer(app.FollowerComponent): self._all[component_id] = self @classmethod - def list(cls) -> List[TurnConsumer]: + def list(cls) -> List[TurnConsumer]: # noqa """Return a list of all Coturn components.""" return cls._all.values() diff --git a/plinth/modules/matrixsynapse/tests/test_turn_config.py b/plinth/modules/matrixsynapse/tests/test_turn_config.py index bda46c72f..09f239fc6 100644 --- a/plinth/modules/matrixsynapse/tests/test_turn_config.py +++ b/plinth/modules/matrixsynapse/tests/test_turn_config.py @@ -3,7 +3,7 @@ Test module for Matrix Synapse STUN/TURN configuration. """ -from unittest.mock import patch +from unittest.mock import MagicMock, patch import pytest @@ -25,6 +25,9 @@ def fixture_test_configuration(call_action, managed_turn_conf_file, overridden_turn_conf_file), \ patch('plinth.modules.matrixsynapse.is_setup', return_value=True), \ patch('plinth.actions.superuser_run', call_action): + helper = MagicMock() + helper.get_state.return_value = 'up-to-date' + matrixsynapse.setup_helper = helper yield