summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-05 16:36:53 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-06 10:44:56 +0000
commita4bd1a5a90b67dc095db520f1943cad23afcadc4 (patch)
tree8bf10e9ed374cf4fb9584fb5d32d2ab2ea64981a /tests
parentf68680b668386dc48b5c0454d0eec8660e80ebdb (diff)
downloadbuildstream-a4bd1a5a90b67dc095db520f1943cad23afcadc4.tar.gz
tests/integration: Disable 'unused-import' checks that are pytest fixtures
Some imports are fixtures, that need to be in the current namespace when pytest runs. However, pylint does not know this. Disabling pylint checks on those imports
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/artifact.py2
-rw-r--r--tests/integration/autotools.py2
-rw-r--r--tests/integration/build-uid.py2
-rw-r--r--tests/integration/cachedfail.py2
-rw-r--r--tests/integration/cmake.py2
-rw-r--r--tests/integration/compose-symlinks.py2
-rw-r--r--tests/integration/compose.py2
-rw-r--r--tests/integration/import.py2
-rw-r--r--tests/integration/make.py2
-rw-r--r--tests/integration/manual.py2
-rw-r--r--tests/integration/messages.py2
-rw-r--r--tests/integration/pip_element.py4
-rw-r--r--tests/integration/pip_source.py4
-rw-r--r--tests/integration/pullbuildtrees.py2
-rw-r--r--tests/integration/sandbox-bwrap.py2
-rw-r--r--tests/integration/script.py2
-rw-r--r--tests/integration/shell.py2
-rw-r--r--tests/integration/shellbuildtrees.py2
-rw-r--r--tests/integration/sockets.py2
-rw-r--r--tests/integration/source-determinism.py2
-rw-r--r--tests/integration/stack.py2
-rw-r--r--tests/integration/symlinks.py2
-rw-r--r--tests/integration/workspace.py2
23 files changed, 25 insertions, 25 deletions
diff --git a/tests/integration/artifact.py b/tests/integration/artifact.py
index 26b4728a8..8ce5e21ce 100644
--- a/tests/integration/artifact.py
+++ b/tests/integration/artifact.py
@@ -28,7 +28,7 @@ import shutil
import tempfile
from buildstream import utils
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils import create_artifact_share
from tests.testutils.site import HAVE_SANDBOX
from buildstream._cas import CASCache
diff --git a/tests/integration/autotools.py b/tests/integration/autotools.py
index 4acefd58d..9b462013b 100644
--- a/tests/integration/autotools.py
+++ b/tests/integration/autotools.py
@@ -4,7 +4,7 @@
import os
import pytest
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from buildstream.testing.integration import assert_contains
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/build-uid.py b/tests/integration/build-uid.py
index b3548f421..d11153d55 100644
--- a/tests/integration/build-uid.py
+++ b/tests/integration/build-uid.py
@@ -4,7 +4,7 @@
import os
import pytest
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils.site import HAVE_BWRAP, IS_LINUX, HAVE_SANDBOX
diff --git a/tests/integration/cachedfail.py b/tests/integration/cachedfail.py
index 640e9c95e..96cfdb723 100644
--- a/tests/integration/cachedfail.py
+++ b/tests/integration/cachedfail.py
@@ -6,7 +6,7 @@ import pytest
from buildstream import _yaml
from buildstream._exceptions import ErrorDomain
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.conftest import clean_platform_cache
from tests.testutils import create_artifact_share
diff --git a/tests/integration/cmake.py b/tests/integration/cmake.py
index d092ec95f..87b850e2d 100644
--- a/tests/integration/cmake.py
+++ b/tests/integration/cmake.py
@@ -4,7 +4,7 @@
import os
import pytest
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from buildstream.testing.integration import assert_contains
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/compose-symlinks.py b/tests/integration/compose-symlinks.py
index 140b0f669..061d8f8e4 100644
--- a/tests/integration/compose-symlinks.py
+++ b/tests/integration/compose-symlinks.py
@@ -4,7 +4,7 @@
import os
import pytest
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
pytestmark = pytest.mark.integration
diff --git a/tests/integration/compose.py b/tests/integration/compose.py
index b5b41ddad..33e763eb7 100644
--- a/tests/integration/compose.py
+++ b/tests/integration/compose.py
@@ -6,7 +6,7 @@ import pytest
from buildstream import _yaml
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from buildstream.testing.integration import walk_dir
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/import.py b/tests/integration/import.py
index 55f760f6e..5371ec61a 100644
--- a/tests/integration/import.py
+++ b/tests/integration/import.py
@@ -6,7 +6,7 @@ import pytest
from buildstream import _yaml
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from buildstream.testing.integration import walk_dir
diff --git a/tests/integration/make.py b/tests/integration/make.py
index e0b443f77..78a2c8f91 100644
--- a/tests/integration/make.py
+++ b/tests/integration/make.py
@@ -4,7 +4,7 @@
import os
import pytest
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from buildstream.testing.integration import assert_contains
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/manual.py b/tests/integration/manual.py
index 514001ef1..1d193b587 100644
--- a/tests/integration/manual.py
+++ b/tests/integration/manual.py
@@ -6,7 +6,7 @@ import pytest
from buildstream import _yaml
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/messages.py b/tests/integration/messages.py
index e57633c55..51385de5d 100644
--- a/tests/integration/messages.py
+++ b/tests/integration/messages.py
@@ -25,7 +25,7 @@ import pytest
from buildstream import _yaml
from buildstream._exceptions import ErrorDomain
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/pip_element.py b/tests/integration/pip_element.py
index 384dd9924..834ce4c63 100644
--- a/tests/integration/pip_element.py
+++ b/tests/integration/pip_element.py
@@ -7,9 +7,9 @@ import pytest
from buildstream import _yaml
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from buildstream.testing.integration import assert_contains
-from tests.testutils import setup_pypi_repo
+from tests.testutils import setup_pypi_repo # pylint: disable=unused-import
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/pip_source.py b/tests/integration/pip_source.py
index ddaf8cf34..91fcbc6a8 100644
--- a/tests/integration/pip_source.py
+++ b/tests/integration/pip_source.py
@@ -6,9 +6,9 @@ import pytest
from buildstream import _yaml
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from buildstream.testing.integration import assert_contains
-from tests.testutils.python_repo import setup_pypi_repo
+from tests.testutils.python_repo import setup_pypi_repo # pylint: disable=unused-import
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/pullbuildtrees.py b/tests/integration/pullbuildtrees.py
index 1a71f412b..038c425c2 100644
--- a/tests/integration/pullbuildtrees.py
+++ b/tests/integration/pullbuildtrees.py
@@ -11,7 +11,7 @@ from tests.testutils import create_artifact_share
from tests.testutils.site import HAVE_SANDBOX
from buildstream import utils
-from buildstream.testing import cli, cli_integration as cli2
+from buildstream.testing import cli, cli_integration as cli2 # pylint: disable=unused-import
from buildstream._cas import CASCache
from buildstream._exceptions import ErrorDomain, LoadErrorReason
diff --git a/tests/integration/sandbox-bwrap.py b/tests/integration/sandbox-bwrap.py
index 8c6daa5a4..e1c676ea5 100644
--- a/tests/integration/sandbox-bwrap.py
+++ b/tests/integration/sandbox-bwrap.py
@@ -6,7 +6,7 @@ import pytest
from buildstream._exceptions import ErrorDomain
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils.site import HAVE_BWRAP, HAVE_BWRAP_JSON_STATUS
diff --git a/tests/integration/script.py b/tests/integration/script.py
index 6e4e94879..f0fe86593 100644
--- a/tests/integration/script.py
+++ b/tests/integration/script.py
@@ -5,7 +5,7 @@ import os
import pytest
from buildstream import _yaml
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/shell.py b/tests/integration/shell.py
index ab5fa8ad2..a4f9e4f7c 100644
--- a/tests/integration/shell.py
+++ b/tests/integration/shell.py
@@ -5,7 +5,7 @@ import os
import pytest
from buildstream import _yaml
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/shellbuildtrees.py b/tests/integration/shellbuildtrees.py
index 438e96221..bdce916ca 100644
--- a/tests/integration/shellbuildtrees.py
+++ b/tests/integration/shellbuildtrees.py
@@ -7,7 +7,7 @@ import shutil
from tests.testutils import create_artifact_share
from tests.testutils.site import HAVE_SANDBOX
-from buildstream.testing import cli, cli_integration
+from buildstream.testing import cli, cli_integration # pylint: disable=unused-import
from buildstream._exceptions import ErrorDomain
diff --git a/tests/integration/sockets.py b/tests/integration/sockets.py
index 3113c9aaf..f9ad45bd0 100644
--- a/tests/integration/sockets.py
+++ b/tests/integration/sockets.py
@@ -4,7 +4,7 @@
import os
import pytest
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/source-determinism.py b/tests/integration/source-determinism.py
index 948bbdad9..061eac458 100644
--- a/tests/integration/source-determinism.py
+++ b/tests/integration/source-determinism.py
@@ -5,7 +5,7 @@ import os
import pytest
from buildstream import _yaml
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from buildstream.testing import create_repo
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/stack.py b/tests/integration/stack.py
index e7c493a76..9248f5b27 100644
--- a/tests/integration/stack.py
+++ b/tests/integration/stack.py
@@ -4,7 +4,7 @@
import os
import pytest
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/symlinks.py b/tests/integration/symlinks.py
index 26cf11b0a..9c58fa40b 100644
--- a/tests/integration/symlinks.py
+++ b/tests/integration/symlinks.py
@@ -4,7 +4,7 @@
import os
import pytest
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils.site import HAVE_SANDBOX
diff --git a/tests/integration/workspace.py b/tests/integration/workspace.py
index 45e160804..e44e26def 100644
--- a/tests/integration/workspace.py
+++ b/tests/integration/workspace.py
@@ -5,7 +5,7 @@ import os
import pytest
from buildstream import _yaml
-from buildstream.testing import cli_integration as cli
+from buildstream.testing import cli_integration as cli # pylint: disable=unused-import
from tests.testutils.site import HAVE_SANDBOX