diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-05 16:34:40 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-06-06 10:44:56 +0000 |
commit | f68680b668386dc48b5c0454d0eec8660e80ebdb (patch) | |
tree | bd25cb0620e773a18a4b165bec0a7545cf257674 /tests | |
parent | 2e755c87427a4896b4e959d7e5741b85558d6274 (diff) | |
download | buildstream-f68680b668386dc48b5c0454d0eec8660e80ebdb.tar.gz |
tests/integration: Silence all 'redefined-outer-name' pylint errors
This is due to pytest fixtures having to be named the same as the test
arguments.
This is a pre-requisite to enable pylint on this directory
We need to do this per file as we can't blanket disable for directories.
See upstream issue: https://github.com/PyCQA/pylint/issues/618
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/artifact.py | 3 | ||||
-rw-r--r-- | tests/integration/autotools.py | 3 | ||||
-rw-r--r-- | tests/integration/build-uid.py | 3 | ||||
-rw-r--r-- | tests/integration/cachedfail.py | 3 | ||||
-rw-r--r-- | tests/integration/cmake.py | 3 | ||||
-rw-r--r-- | tests/integration/compose-symlinks.py | 3 | ||||
-rw-r--r-- | tests/integration/compose.py | 3 | ||||
-rw-r--r-- | tests/integration/import.py | 3 | ||||
-rw-r--r-- | tests/integration/make.py | 3 | ||||
-rw-r--r-- | tests/integration/manual.py | 3 | ||||
-rw-r--r-- | tests/integration/messages.py | 3 | ||||
-rw-r--r-- | tests/integration/pip_element.py | 3 | ||||
-rw-r--r-- | tests/integration/pip_source.py | 3 | ||||
-rw-r--r-- | tests/integration/pullbuildtrees.py | 3 | ||||
-rw-r--r-- | tests/integration/sandbox-bwrap.py | 3 | ||||
-rw-r--r-- | tests/integration/script.py | 3 | ||||
-rw-r--r-- | tests/integration/shell.py | 3 | ||||
-rw-r--r-- | tests/integration/shellbuildtrees.py | 3 | ||||
-rw-r--r-- | tests/integration/sockets.py | 3 | ||||
-rw-r--r-- | tests/integration/source-determinism.py | 3 | ||||
-rw-r--r-- | tests/integration/stack.py | 3 | ||||
-rw-r--r-- | tests/integration/symlinks.py | 3 | ||||
-rw-r--r-- | tests/integration/workspace.py | 3 |
23 files changed, 69 insertions, 0 deletions
diff --git a/tests/integration/artifact.py b/tests/integration/artifact.py index b942c1690..26b4728a8 100644 --- a/tests/integration/artifact.py +++ b/tests/integration/artifact.py @@ -18,6 +18,9 @@ # Authors: Richard Maw <richard.maw@codethink.co.uk> # +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + from contextlib import contextmanager import os import pytest diff --git a/tests/integration/autotools.py b/tests/integration/autotools.py index 80365b8ee..4acefd58d 100644 --- a/tests/integration/autotools.py +++ b/tests/integration/autotools.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/build-uid.py b/tests/integration/build-uid.py index f2e50a3c7..b3548f421 100644 --- a/tests/integration/build-uid.py +++ b/tests/integration/build-uid.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/cachedfail.py b/tests/integration/cachedfail.py index 489e48379..640e9c95e 100644 --- a/tests/integration/cachedfail.py +++ b/tests/integration/cachedfail.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/cmake.py b/tests/integration/cmake.py index a69b9cd80..d092ec95f 100644 --- a/tests/integration/cmake.py +++ b/tests/integration/cmake.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/compose-symlinks.py b/tests/integration/compose-symlinks.py index e510d9573..140b0f669 100644 --- a/tests/integration/compose-symlinks.py +++ b/tests/integration/compose-symlinks.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/compose.py b/tests/integration/compose.py index dab05fd9f..b5b41ddad 100644 --- a/tests/integration/compose.py +++ b/tests/integration/compose.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/import.py b/tests/integration/import.py index 26c8cf6a0..55f760f6e 100644 --- a/tests/integration/import.py +++ b/tests/integration/import.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/make.py b/tests/integration/make.py index f59c2b0d6..e0b443f77 100644 --- a/tests/integration/make.py +++ b/tests/integration/make.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/manual.py b/tests/integration/manual.py index 0ba650bde..514001ef1 100644 --- a/tests/integration/manual.py +++ b/tests/integration/manual.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/messages.py b/tests/integration/messages.py index 2211ea468..e57633c55 100644 --- a/tests/integration/messages.py +++ b/tests/integration/messages.py @@ -17,6 +17,9 @@ # Authors: Tristan Maat <tristan.maat@codethink.co.uk> # +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/pip_element.py b/tests/integration/pip_element.py index 94130d9ab..384dd9924 100644 --- a/tests/integration/pip_element.py +++ b/tests/integration/pip_element.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/pip_source.py b/tests/integration/pip_source.py index 3ba3a50b4..ddaf8cf34 100644 --- a/tests/integration/pip_source.py +++ b/tests/integration/pip_source.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/pullbuildtrees.py b/tests/integration/pullbuildtrees.py index f37023e49..1a71f412b 100644 --- a/tests/integration/pullbuildtrees.py +++ b/tests/integration/pullbuildtrees.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + from contextlib import contextmanager import os import pytest diff --git a/tests/integration/sandbox-bwrap.py b/tests/integration/sandbox-bwrap.py index 549de4ed0..8c6daa5a4 100644 --- a/tests/integration/sandbox-bwrap.py +++ b/tests/integration/sandbox-bwrap.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/script.py b/tests/integration/script.py index acc752f48..6e4e94879 100644 --- a/tests/integration/script.py +++ b/tests/integration/script.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/shell.py b/tests/integration/shell.py index a9fb4855a..ab5fa8ad2 100644 --- a/tests/integration/shell.py +++ b/tests/integration/shell.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/shellbuildtrees.py b/tests/integration/shellbuildtrees.py index aa41eba36..438e96221 100644 --- a/tests/integration/shellbuildtrees.py +++ b/tests/integration/shellbuildtrees.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest import shutil diff --git a/tests/integration/sockets.py b/tests/integration/sockets.py index af09c391b..3113c9aaf 100644 --- a/tests/integration/sockets.py +++ b/tests/integration/sockets.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/source-determinism.py b/tests/integration/source-determinism.py index 5bb0941d1..948bbdad9 100644 --- a/tests/integration/source-determinism.py +++ b/tests/integration/source-determinism.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/stack.py b/tests/integration/stack.py index 9cc917e0e..e7c493a76 100644 --- a/tests/integration/stack.py +++ b/tests/integration/stack.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/symlinks.py b/tests/integration/symlinks.py index 02238aebc..26cf11b0a 100644 --- a/tests/integration/symlinks.py +++ b/tests/integration/symlinks.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/integration/workspace.py b/tests/integration/workspace.py index 134ed6385..45e160804 100644 --- a/tests/integration/workspace.py +++ b/tests/integration/workspace.py @@ -1,3 +1,6 @@ +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest |