matrix-synapse, coturn: Fix minor pipeline failures

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2021-02-28 17:03:21 -08:00
parent b7007eb873
commit 52b2c17ec3
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 5 additions and 2 deletions

View File

@ -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()

View File

@ -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