matrix-synapse, coturn: Fix minor pipeline failures

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa committed 2021-02-28 17:08:55 -08:00
1 parent b7007eb873
commit 52b2c17ec3
2 files changed
+5 -2

No files matched your search

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