forked from openlp/openlp
Try to add the SIP initialisation in a base module.
This commit is contained in:
parent
761bb6339d
commit
00a0748423
8
tests/interfaces/__init__.py
Normal file
8
tests/interfaces/__init__.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import sip
|
||||||
|
sip.setapi(u'QDate', 2)
|
||||||
|
sip.setapi(u'QDateTime', 2)
|
||||||
|
sip.setapi(u'QString', 2)
|
||||||
|
sip.setapi(u'QTextStream', 2)
|
||||||
|
sip.setapi(u'QTime', 2)
|
||||||
|
sip.setapi(u'QUrl', 2)
|
||||||
|
sip.setapi(u'QVariant', 2)
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Package to test the openlp.core.ui package.
|
Package to test the openlp.core.ui package.
|
||||||
"""
|
"""
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
@ -8,6 +8,7 @@ from openlp.core.lib import Registry
|
|||||||
from openlp.core.ui import servicenoteform
|
from openlp.core.ui import servicenoteform
|
||||||
from PyQt4 import QtCore, QtGui, QtTest
|
from PyQt4 import QtCore, QtGui, QtTest
|
||||||
|
|
||||||
|
|
||||||
class TestStartNoteDialog(TestCase):
|
class TestStartNoteDialog(TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
@ -64,4 +65,4 @@ class TestStartNoteDialog(TestCase):
|
|||||||
QtTest.QTest.mouseClick(okWidget, QtCore.Qt.LeftButton)
|
QtTest.QTest.mouseClick(okWidget, QtCore.Qt.LeftButton)
|
||||||
|
|
||||||
# THEN the following text is returned
|
# THEN the following text is returned
|
||||||
self.assertEqual(self.form.text_edit.toPlainText(), text, u'The new text should be returned')
|
self.assertEqual(self.form.text_edit.toPlainText(), text, u'The new text should be returned')
|
||||||
|
@ -8,6 +8,7 @@ from openlp.core.lib import Registry
|
|||||||
from openlp.core.ui import starttimeform
|
from openlp.core.ui import starttimeform
|
||||||
from PyQt4 import QtCore, QtGui, QtTest
|
from PyQt4 import QtCore, QtGui, QtTest
|
||||||
|
|
||||||
|
|
||||||
class TestStartTimeDialog(TestCase):
|
class TestStartTimeDialog(TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
@ -1,15 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Package to test the openlp.core.ui package.
|
Package to test the openlp.core.ui package.
|
||||||
"""
|
"""
|
||||||
import sip
|
|
||||||
sip.setapi(u'QDate', 2)
|
|
||||||
sip.setapi(u'QDateTime', 2)
|
|
||||||
sip.setapi(u'QString', 2)
|
|
||||||
sip.setapi(u'QTextStream', 2)
|
|
||||||
sip.setapi(u'QTime', 2)
|
|
||||||
sip.setapi(u'QUrl', 2)
|
|
||||||
sip.setapi(u'QVariant', 2)
|
|
||||||
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from PyQt4 import QtGui
|
from PyQt4 import QtGui
|
||||||
|
Loading…
Reference in New Issue
Block a user