Add some tests for threading, and fix a problem in a test related to the threading change

This commit is contained in:
Raoul Snyman 2017-12-17 00:25:29 -07:00
parent 786462148f
commit d75b3f3ef1

View File

@ -773,9 +773,9 @@ class TestSongSelectForm(TestCase, TestMixin):
self.assertTrue(ssform.search_combobox.isEnabled()) self.assertTrue(ssform.search_combobox.isEnabled())
@patch('openlp.plugins.songs.forms.songselectform.Settings') @patch('openlp.plugins.songs.forms.songselectform.Settings')
@patch('openlp.plugins.songs.forms.songselectform.QtCore.QThread') @patch('openlp.plugins.songs.forms.songselectform.run_thread')
@patch('openlp.plugins.songs.forms.songselectform.SearchWorker') @patch('openlp.plugins.songs.forms.songselectform.SearchWorker')
def test_on_search_button_clicked(self, MockedSearchWorker, MockedQtThread, MockedSettings): def test_on_search_button_clicked(self, MockedSearchWorker, mocked_run_thread, MockedSettings):
""" """
Test that search fields are disabled when search button is clicked. Test that search fields are disabled when search button is clicked.
""" """