~phill-ridout/openlp/TODOne

« back to all changes in this revision

Viewing changes to tests/interfaces/openlp_plugins/bibles/forms/test_bibleimportform.py

  • Committer: Tim Bentley
  • Author(s): Phill
  • Date: 2017-05-06 19:42:24 UTC
  • mfrom: (2731.1.1 test_fixes)
  • Revision ID: tim.bentley@gmail.com-20170506194224-r8ybv5gd24z2vv37
Fix the QFormLayout in BibleImportForm
Fix one of the tests that was skipped

lp:~phill-ridout/openlp/test_fixes (revision 2732)
[SUCCESS] https://ci.openlp.io/job/Branch-01-Pull/1973/
[SUCCESS] https://ci.openlp.io/job/Branch-02-Functional-Tests/1883/
[SUCCESS] https://ci.openlp.io/job/Branch-03-Interface-Tests/1824/
[SUCCESS] https://ci.openlp.io/job/Branch-04a-Code_Analysis/1206/
[SUCCESS] https://ci.openlp.io/job/Branch-04b-Test_Coverage/1074/
[SUCCESS] https://ci.openlp.io/job/Branch-04c...

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from PyQt5 import QtWidgets
29
29
 
30
30
from openlp.core.common import Registry
31
 
from openlp.plugins.bibles.forms.bibleimportform import BibleImportForm, PYSWORD_AVAILABLE
 
31
from openlp.plugins.bibles.forms import bibleimportform
32
32
 
33
33
from tests.helpers.testmixin import TestMixin
34
34
 
35
35
 
36
 
@skip('One of the QFormLayouts in the BibleImportForm is causing a segfault')
37
36
class TestBibleImportForm(TestCase, TestMixin):
38
37
    """
39
38
    Test the BibleImportForm class
47
46
        self.setup_application()
48
47
        self.main_window = QtWidgets.QMainWindow()
49
48
        Registry().register('main_window', self.main_window)
50
 
        PYSWORD_AVAILABLE = False
 
49
        bibleimportform.PYSWORD_AVAILABLE = False
51
50
        self.mocked_manager = MagicMock()
52
 
        self.form = BibleImportForm(self.main_window, self.mocked_manager, MagicMock())
 
51
        self.form = bibleimportform.BibleImportForm(self.main_window, self.mocked_manager, MagicMock())
53
52
 
54
53
    def tearDown(self):
55
54
        """