Remove some pylint occurences

This commit is contained in:
Bastian Germann 2019-09-18 23:35:47 +02:00
parent 7e4a586a97
commit 95a056e504
4 changed files with 2 additions and 5 deletions

1
.gitignore vendored
View File

@ -18,7 +18,6 @@
.idea
.kdev4
.komodotools
.pylint.d
.pytest_cache
.vscode
OpenLP.egg-info

View File

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
# pylint: disable=logging-format-interpolation
##########################################################################
# OpenLP - Open Source Lyrics Projection #

View File

@ -1152,7 +1152,7 @@ class SlideController(QtWidgets.QWidget, LogMixin, RegistryProperties):
# done by the thread holding the lock. If it is a "start" slide, we must wait for the lock, but only for 0.2
# seconds, since we don't want to cause a deadlock
timeout = 0.2 if start else -1
if not self.slide_selected_lock.acquire(start, timeout): # pylint: disable=too-many-function-args
if not self.slide_selected_lock.acquire(start, timeout):
if start:
self.log_debug('Could not get lock in slide_selected after waiting %f, skip to avoid deadlock.'
% timeout)

View File

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
# pylint: disable=protected-access
##########################################################################
# OpenLP - Open Source Lyrics Projection #
@ -895,7 +894,7 @@ class TestSearchWorker(TestCase, TestMixin):
# WHEN: The start() method is called
with patch.object(worker, 'found_song') as mocked_found_song:
worker._found_song_callback(song) # pylint: disable=protected-access
worker._found_song_callback(song)
# THEN: The "found_song" signal should have been emitted
mocked_found_song.emit.assert_called_with(song)