diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-05 18:26:55 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-06-06 15:05:21 +0000 |
commit | 544f0a645435e76e4de119be526b3c090714bd36 (patch) | |
tree | 01d4b37aa9bfaa262c3b0e45058469167355990b /tests/artifactcache | |
parent | 504069c35ea334666cc25455e32a9ad9e3bf0070 (diff) | |
download | buildstream-544f0a645435e76e4de119be526b3c090714bd36.tar.gz |
tests/artifactcache: 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/artifactcache')
-rw-r--r-- | tests/artifactcache/cache_size.py | 2 | ||||
-rw-r--r-- | tests/artifactcache/config.py | 2 | ||||
-rw-r--r-- | tests/artifactcache/expiry.py | 2 | ||||
-rw-r--r-- | tests/artifactcache/junctions.py | 2 | ||||
-rw-r--r-- | tests/artifactcache/pull.py | 2 | ||||
-rw-r--r-- | tests/artifactcache/push.py | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/artifactcache/cache_size.py b/tests/artifactcache/cache_size.py index 250094746..3a2956c5c 100644 --- a/tests/artifactcache/cache_size.py +++ b/tests/artifactcache/cache_size.py @@ -7,7 +7,7 @@ from unittest import mock from buildstream import _yaml from buildstream._cas.cascache import CACHE_SIZE_FILE from buildstream._exceptions import ErrorDomain -from buildstream.testing import cli +from buildstream.testing import cli # pylint: disable=unused-import from tests.testutils import create_element_size diff --git a/tests/artifactcache/config.py b/tests/artifactcache/config.py index 39d8b9da3..46901937b 100644 --- a/tests/artifactcache/config.py +++ b/tests/artifactcache/config.py @@ -13,7 +13,7 @@ from buildstream.utils import _deduplicate from buildstream import _yaml from buildstream._exceptions import ErrorDomain, LoadErrorReason -from buildstream.testing.runcli import cli +from buildstream.testing.runcli import cli # pylint: disable=unused-import DATA_DIR = os.path.dirname(os.path.realpath(__file__)) diff --git a/tests/artifactcache/expiry.py b/tests/artifactcache/expiry.py index c67884046..b163903cb 100644 --- a/tests/artifactcache/expiry.py +++ b/tests/artifactcache/expiry.py @@ -27,7 +27,7 @@ from unittest import mock import pytest from buildstream._exceptions import ErrorDomain, LoadErrorReason -from buildstream.testing import cli +from buildstream.testing import cli # pylint: disable=unused-import from tests.testutils import create_element_size, update_element_size, wait_for_cache_granularity diff --git a/tests/artifactcache/junctions.py b/tests/artifactcache/junctions.py index 8e38f26e1..52d721baf 100644 --- a/tests/artifactcache/junctions.py +++ b/tests/artifactcache/junctions.py @@ -6,7 +6,7 @@ import shutil import pytest from buildstream import _yaml -from buildstream.testing import cli +from buildstream.testing import cli # pylint: disable=unused-import from tests.testutils import create_artifact_share diff --git a/tests/artifactcache/pull.py b/tests/artifactcache/pull.py index eafcec64b..77afbbdfb 100644 --- a/tests/artifactcache/pull.py +++ b/tests/artifactcache/pull.py @@ -11,7 +11,7 @@ from buildstream import _yaml, _signals, utils from buildstream._context import Context from buildstream._project import Project from buildstream._protos.build.bazel.remote.execution.v2 import remote_execution_pb2 -from buildstream.testing import cli +from buildstream.testing import cli # pylint: disable=unused-import from tests.testutils import create_artifact_share diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py index a49ee32d2..af082e7d0 100644 --- a/tests/artifactcache/push.py +++ b/tests/artifactcache/push.py @@ -12,7 +12,7 @@ from buildstream._context import Context from buildstream._project import Project from buildstream._protos.build.bazel.remote.execution.v2 import remote_execution_pb2 from buildstream.storage._casbaseddirectory import CasBasedDirectory -from buildstream.testing import cli +from buildstream.testing import cli # pylint: disable=unused-import from tests.testutils import create_artifact_share |