From 7e0ea578eee3e7c8a2750dbe6672ecd032ebf642 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sat, 16 Feb 2013 11:28:37 +0100 Subject: [PATCH] started with screen tests --- .../openlp_core_lib/test_screenlist.py | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/functional/openlp_core_lib/test_screenlist.py diff --git a/tests/functional/openlp_core_lib/test_screenlist.py b/tests/functional/openlp_core_lib/test_screenlist.py new file mode 100644 index 000000000..e61338d05 --- /dev/null +++ b/tests/functional/openlp_core_lib/test_screenlist.py @@ -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 +