forked from openlp/openlp
Fix import order
This commit is contained in:
parent
796a147ffe
commit
11dea519d2
@ -3,12 +3,13 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from openlp.core.lib import Registry, ImageManager, ScreenList
|
|
||||||
from PyQt4 import QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
|
from openlp.core.lib import Registry, ImageManager, ScreenList
|
||||||
|
|
||||||
|
|
||||||
TEST_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), u'..', u'..', u'resources'))
|
TEST_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), u'..', u'..', u'resources'))
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
Package to test the openlp.core.lib package.
|
Package to test the openlp.core.lib package.
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
from mock import MagicMock
|
from mock import MagicMock
|
||||||
|
|
||||||
from openlp.core.lib import Registry
|
from openlp.core.lib import Registry
|
||||||
|
|
||||||
TESTPATH = os.path.abspath(os.path.join(os.path.dirname(__file__), u'..', u'..', u'resources'))
|
TESTPATH = os.path.abspath(os.path.join(os.path.dirname(__file__), u'..', u'..', u'resources'))
|
||||||
|
|
||||||
|
|
||||||
class TestRegistry(TestCase):
|
class TestRegistry(TestCase):
|
||||||
|
|
||||||
def registry_service_test(self):
|
def registry_service_test(self):
|
||||||
|
@ -3,10 +3,9 @@
|
|||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import cPickle
|
import cPickle
|
||||||
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from mock import MagicMock
|
from mock import MagicMock
|
||||||
|
|
||||||
from openlp.core.lib import ServiceItem, Registry
|
from openlp.core.lib import ServiceItem, Registry
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
"""
|
"""
|
||||||
Package to test the openlp.core.lib package.
|
Package to test the openlp.core.lib package.
|
||||||
"""
|
"""
|
||||||
from unittest import TestCase
|
|
||||||
|
|
||||||
|
from unittest import TestCase
|
||||||
from mock import MagicMock
|
from mock import MagicMock
|
||||||
|
|
||||||
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.lib import Registry, ScreenList
|
from openlp.core.lib import Registry, ScreenList
|
||||||
from openlp.core.ui.mainwindow import MainWindow
|
from openlp.core.ui.mainwindow import MainWindow
|
||||||
from PyQt4 import QtGui
|
|
||||||
|
|
||||||
|
|
||||||
class TestStartNoteDialog(TestCase):
|
class TestStartNoteDialog(TestCase):
|
||||||
|
@ -2,11 +2,13 @@
|
|||||||
Package to test the openlp.core.ui package.
|
Package to test the openlp.core.ui package.
|
||||||
"""
|
"""
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from mock import patch
|
from mock import patch
|
||||||
|
|
||||||
|
from PyQt4 import QtCore, QtGui, QtTest
|
||||||
|
|
||||||
from openlp.core.lib import Registry
|
from openlp.core.lib import Registry
|
||||||
from openlp.core.ui import servicenoteform
|
from openlp.core.ui import servicenoteform
|
||||||
from PyQt4 import QtCore, QtGui, QtTest
|
|
||||||
|
|
||||||
class TestStartNoteDialog(TestCase):
|
class TestStartNoteDialog(TestCase):
|
||||||
|
|
||||||
|
@ -2,11 +2,13 @@
|
|||||||
Package to test the openlp.core.ui package.
|
Package to test the openlp.core.ui package.
|
||||||
"""
|
"""
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from mock import MagicMock, patch
|
from mock import MagicMock, patch
|
||||||
|
|
||||||
|
from PyQt4 import QtCore, QtGui, QtTest
|
||||||
|
|
||||||
from openlp.core.lib import Registry
|
from openlp.core.lib import Registry
|
||||||
from openlp.core.ui import starttimeform
|
from openlp.core.ui import starttimeform
|
||||||
from PyQt4 import QtCore, QtGui, QtTest
|
|
||||||
|
|
||||||
class TestStartTimeDialog(TestCase):
|
class TestStartTimeDialog(TestCase):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user