fix more tests

This commit is contained in:
Tim Bentley 2017-08-12 20:34:56 +01:00
parent e896e2fd1f
commit bbcd5691fe
3 changed files with 4 additions and 5 deletions

View File

@ -25,13 +25,13 @@ 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 PyQt5 import QtWidgets from PyQt5 import QtWidgets
from openlp.core.common import Settings from openlp.core.common import Settings
from openlp.core.api.tab import ApiTab from openlp.core.api.tab import ApiTab
from tests.functional import patch
from tests.helpers.testmixin import TestMixin from tests.helpers.testmixin import TestMixin
__default_settings__ = { __default_settings__ = {

View File

@ -38,7 +38,8 @@ __default_settings__ = {
'api/password': 'password', 'api/password': 'password',
'api/authentication enabled': False, 'api/authentication enabled': False,
'api/ip address': '0.0.0.0', 'api/ip address': '0.0.0.0',
'api/thumbnails': True 'api/thumbnails': True,
'songs/chord notation': True
} }

View File

@ -23,12 +23,10 @@
import os import os
import shutil import shutil
from unittest.mock import patch
from tempfile import mkdtemp from tempfile import mkdtemp
from unittest import TestCase from unittest import TestCase
from openlp.plugins.remotes.deploy import check_for_previous_deployment, deploy_zipfile from openlp.plugins.remotes.deploy import deploy_zipfile
TEST_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', 'resources')) TEST_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', 'resources'))