fix more tests

This commit is contained in:
Tim Bentley 2017-08-12 20:49:17 +01:00
parent edd1bf3487
commit c3e09f7d0e

View File

@ -25,12 +25,12 @@ This module contains tests for the lib submodule of the Remotes plugin.
import os import os
import re import re
from unittest import TestCase from unittest import TestCase
from unittest.mock import MagicMock, patch from unittest.mock import patch
from PyQt5 import QtWidgets 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 openlp.core.api.tab import ApiTab
from tests.helpers.testmixin import TestMixin from tests.helpers.testmixin import TestMixin
@ -63,6 +63,7 @@ class TestApiTab(TestCase, TestMixin):
Settings().extend_default_settings(__default_settings__) Settings().extend_default_settings(__default_settings__)
self.parent = QtWidgets.QMainWindow() self.parent = QtWidgets.QMainWindow()
self.form = ApiTab(self.parent) self.form = ApiTab(self.parent)
Registry().set_flag('no_web_server', False)
def tearDown(self): def tearDown(self):
""" """