From c3e09f7d0eb050d450b9620222061369af4104b4 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sat, 12 Aug 2017 20:49:17 +0100 Subject: [PATCH] fix more tests --- tests/functional/openlp_core_api/test_tab.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/functional/openlp_core_api/test_tab.py b/tests/functional/openlp_core_api/test_tab.py index 17b3194e8..84240ac13 100644 --- a/tests/functional/openlp_core_api/test_tab.py +++ b/tests/functional/openlp_core_api/test_tab.py @@ -25,12 +25,12 @@ This module contains tests for the lib submodule of the Remotes plugin. import os import re from unittest import TestCase -from unittest.mock import MagicMock, patch +from unittest.mock import patch from PyQt5 import QtWidgets -from openlp.core.common import Settings +from openlp.core.common import Registry, Settings from openlp.core.api.tab import ApiTab from tests.helpers.testmixin import TestMixin @@ -63,6 +63,7 @@ class TestApiTab(TestCase, TestMixin): Settings().extend_default_settings(__default_settings__) self.parent = QtWidgets.QMainWindow() self.form = ApiTab(self.parent) + Registry().set_flag('no_web_server', False) def tearDown(self): """