Pylint cleanups (#15626)
* Pylint 2 no-else-return fixes * Remove unneeded abstract-class-not-used pylint disable
This commit is contained in:
1 parent
a38c0d6d15
commit
b7c336a687
166 files changed
+425
-490
No files matched your search
@@ -224,13 +224,12 @@ class TestGraphite(unittest.TestCase):
|
||||
def fake_get():
|
||||
if len(runs) >= 2:
|
||||
return self.gf._quit_object
|
||||
elif runs:
|
||||
if runs:
|
||||
runs.append(1)
|
||||
return mock.MagicMock(event_type='somethingelse',
|
||||
data={'new_event': None})
|
||||
else:
|
||||
runs.append(1)
|
||||
return event
|
||||
runs.append(1)
|
||||
return event
|
||||
|
||||
with mock.patch.object(self.gf, '_queue') as mock_queue:
|
||||
with mock.patch.object(self.gf, '_report_attributes') as mock_r:
|
||||
|
||||
Reference in new issue
Block a user