~tomasgroth/openlp/portable-path

« back to all changes in this revision

Viewing changes to tests/interfaces/openlp_plugins/custom/forms/test_customform.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:
4
4
###############################################################################
5
5
# OpenLP - Open Source Lyrics Projection                                      #
6
6
# --------------------------------------------------------------------------- #
7
 
# Copyright (c) 2008-2018 OpenLP Developers                                   #
 
7
# Copyright (c) 2008-2019 OpenLP Developers                                   #
8
8
# --------------------------------------------------------------------------- #
9
9
# This program is free software; you can redistribute it and/or modify it     #
10
10
# under the terms of the GNU General Public License as published by the Free  #
25
25
from unittest import TestCase
26
26
from unittest.mock import MagicMock, patch
27
27
 
28
 
from PyQt5 import QtTest, QtCore, QtWidgets
 
28
from PyQt5 import QtCore, QtTest, QtWidgets
29
29
 
30
30
from openlp.core.common.registry import Registry
31
31
from openlp.plugins.custom.forms.editcustomform import EditCustomForm
84
84
        Test the on_add_button_clicked_test method / add_button button.
85
85
        """
86
86
        # GIVEN: A mocked QDialog.exec() method
87
 
        with patch('PyQt5.QtWidgets.QDialog.exec') as mocked_exec:
 
87
        with patch('PyQt5.QtWidgets.QDialog.exec'):
88
88
            # WHEN: Add a new slide.
89
89
            QtTest.QTest.mouseClick(self.form.add_button, QtCore.Qt.LeftButton)
90
90