forked from openlp/openlp
started with screen tests
This commit is contained in:
parent
0c4789f071
commit
7e0ea578ee
38
tests/functional/openlp_core_lib/test_screenlist.py
Normal file
38
tests/functional/openlp_core_lib/test_screenlist.py
Normal file
@ -0,0 +1,38 @@
|
||||
"""
|
||||
Package to test the openlp.core.lib.screenlist package.
|
||||
"""
|
||||
from unittest import TestCase
|
||||
|
||||
#from mock import MagicMock, patch
|
||||
|
||||
from openlp.core.lib import ScreenList
|
||||
|
||||
from PyQt4 import QtGui
|
||||
|
||||
class TestScreenList(object):
|
||||
|
||||
def setUp(self):
|
||||
"""
|
||||
Set up the components need for all tests.
|
||||
"""
|
||||
self.application = QtGui.QApplication([])
|
||||
print ScreenList.create(self.application.desktop())
|
||||
self.screen_list = ScreenList()
|
||||
|
||||
def tearDown(self):
|
||||
"""
|
||||
Clean up the components needed for the tests.
|
||||
"""
|
||||
del self.application
|
||||
|
||||
def basic_test(self):
|
||||
"""
|
||||
"""
|
||||
print self.screen_list.get_screen_list()
|
||||
|
||||
def add_desktop_test(self):
|
||||
"""
|
||||
Test to check if new monitors are detected by OpenLP (= plugged in while OpenLP is running).
|
||||
"""
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user