forked from openlp/openlp
Add some tests for threading, and fix a problem in a test related to the threading change
This commit is contained in:
parent
786462148f
commit
d75b3f3ef1
@ -773,9 +773,9 @@ class TestSongSelectForm(TestCase, TestMixin):
|
||||
self.assertTrue(ssform.search_combobox.isEnabled())
|
||||
|
||||
@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')
|
||||
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.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user