summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-05 18:58:51 +0100
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-05 18:58:51 +0100
commitb1ce43824b40a9f031aeb1e3a99a303ea446f624 (patch)
treeb6a8aefdf834f5256a93c054fdcd096078638b7d
parent6756480a858e4657b2a93653037b3f9a93290e7c (diff)
downloadbuildstream-bschubert/pylint-fixes.tar.gz
tests/plugins: Enable pylint and fix problemsbschubert/pylint-fixes
tests/plugins was missing an __init__.py, which meant pylint was never run there.
-rw-r--r--tests/plugins/__init__.py0
-rw-r--r--tests/plugins/deprecationwarnings/__init__.py0
-rw-r--r--tests/plugins/deprecationwarnings/deprecationwarnings.py9
3 files changed, 7 insertions, 2 deletions
diff --git a/tests/plugins/__init__.py b/tests/plugins/__init__.py
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/plugins/__init__.py
diff --git a/tests/plugins/deprecationwarnings/__init__.py b/tests/plugins/deprecationwarnings/__init__.py
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/plugins/deprecationwarnings/__init__.py
diff --git a/tests/plugins/deprecationwarnings/deprecationwarnings.py b/tests/plugins/deprecationwarnings/deprecationwarnings.py
index 75652bf06..4d2d22c05 100644
--- a/tests/plugins/deprecationwarnings/deprecationwarnings.py
+++ b/tests/plugins/deprecationwarnings/deprecationwarnings.py
@@ -1,6 +1,11 @@
-import pytest
+# Pylint doesn't play well with fixtures and dependency injection from pytest
+# pylint: disable=redefined-outer-name
+
import os
-from buildstream.testing import cli
+
+import pytest
+
+from buildstream.testing import cli # pylint: disable=unused-import
DATA_DIR = os.path.join(