forked from openlp/openlp
fix more tests
This commit is contained in:
parent
edd1bf3487
commit
c3e09f7d0e
@ -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):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user