diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-02-02 10:05:06 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-02-08 09:44:07 -0800 |
commit | cbd7a095c0e8ab80a6b7cca1ae71641e74e8e2bc (patch) | |
tree | e31276e0b806a8329c740b369f30f87d50a6d6fc /tests/widgets | |
parent | a5da860c9e03a545a39f9e719a3f7e743cdac777 (diff) |
tests: Instruct pylint to ignore a large swath of warnings
There are a number of things pylint warns on that absolutely make sense
to fix in production code, but for unittests they either don't matter
(like naming variables "foo"), can't be fixed (TestCase methods that
don't use self because they use a mock assert), or the descriptive names
violate PEP8. These are annoying and create noise, so tell pylint to
ignore them.
Diffstat (limited to 'tests/widgets')
-rw-r--r-- | tests/widgets/globals_test.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/widgets/globals_test.py b/tests/widgets/globals_test.py index 7d7d6547..52563b84 100644 --- a/tests/widgets/globals_test.py +++ b/tests/widgets/globals_test.py @@ -29,6 +29,8 @@ class TestTagWidget(unittest.TestCase): def test_sort(self): """Test sorting.""" + # There's an upstream bug about this + # pylint: disable=bad-continuation with mock.patch( 'alot.widgets.globals.settings.get_tagstring_representation', lambda t, _, __: {'translated': t, 'normal': None, |