~tomasgroth/openlp/portable-path

« back to all changes in this revision

Viewing changes to tests/openlp_core/ui/test_themeform.py

  • Committer: Tomas Groth
  • Date: 2019-04-30 19:02:42 UTC
  • mfrom: (2829.2.32 openlp)
  • Revision ID: tomasgroth@yahoo.dk-20190430190242-6zwjk8724tyux70m
trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
 
3
 
 
4
###############################################################################
 
5
# OpenLP - Open Source Lyrics Projection                                      #
 
6
# --------------------------------------------------------------------------- #
 
7
# Copyright (c) 2008-2019 OpenLP Developers                                   #
 
8
# --------------------------------------------------------------------------- #
 
9
# This program is free software; you can redistribute it and/or modify it     #
 
10
# under the terms of the GNU General Public License as published by the Free  #
 
11
# Software Foundation; version 2 of the License.                              #
 
12
#                                                                             #
 
13
# This program is distributed in the hope that it will be useful, but WITHOUT #
 
14
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or       #
 
15
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for    #
 
16
# more details.                                                               #
 
17
#                                                                             #
 
18
# You should have received a copy of the GNU General Public License along     #
 
19
# with this program; if not, write to the Free Software Foundation, Inc., 59  #
 
20
# Temple Place, Suite 330, Boston, MA 02111-1307 USA                          #
 
21
###############################################################################
 
22
"""
 
23
Interface tests to test the ThemeWizard class and related methods.
 
24
"""
 
25
from unittest import TestCase
 
26
 
 
27
from openlp.core.common.registry import Registry
 
28
from openlp.core.ui.themeform import ThemeForm
 
29
from tests.helpers.testmixin import TestMixin
 
30
 
 
31
 
 
32
class TestThemeManager(TestCase, TestMixin):
 
33
    """
 
34
    Test the functions in the ThemeManager module
 
35
    """
 
36
    def setUp(self):
 
37
        """
 
38
        Create the UI
 
39
        """
 
40
        Registry.create()
 
41
 
 
42
    def test_create_theme_wizard(self):
 
43
        """
 
44
        Test creating a ThemeForm instance
 
45
        """
 
46
        # GIVEN: A ThemeForm class
 
47
        # WHEN: An object is created
 
48
        # THEN: There should be no problems
 
49
        ThemeForm(None)