mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
matrix-synapse, coturn: Fix minor pipeline failures
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
b7007eb873
commit
52b2c17ec3
@ -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()
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user