1
# -*- coding: utf-8 -*-
2
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
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. #
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 #
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
###############################################################################
23
Interface tests to test the ThemeWizard class and related methods.
25
from unittest import TestCase
27
from openlp.core.common.registry import Registry
28
from openlp.core.ui.themeform import ThemeForm
29
from tests.helpers.testmixin import TestMixin
32
class TestThemeManager(TestCase, TestMixin):
34
Test the functions in the ThemeManager module
42
def test_create_theme_wizard(self):
44
Test creating a ThemeForm instance
46
# GIVEN: A ThemeForm class
47
# WHEN: An object is created
48
# THEN: There should be no problems