From 6f51d3e7349a4b829484821158f69d024229eccb Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Sun, 3 Mar 2019 19:18:19 +0100 Subject: [PATCH] fix the "Redefining name ... from outer scope" in tests problem of the pylint fixtures --- test/boswatch/test_ServerClient.py | 2 ++ test/boswatch/test_broadcast.py | 2 ++ test/boswatch/test_config.py | 2 ++ test/boswatch/test_decoder.py | 2 ++ test/boswatch/test_header.py | 2 ++ test/boswatch/test_packet.py | 2 ++ test/boswatch/test_paths.py | 2 ++ test/boswatch/test_timer.py | 2 ++ test/module/test_doubleFilter.py | 2 ++ test/test_template.py | 2 ++ 10 files changed, 20 insertions(+) diff --git a/test/boswatch/test_ServerClient.py b/test/boswatch/test_ServerClient.py index aa89706..c51bc27 100644 --- a/test/boswatch/test_ServerClient.py +++ b/test/boswatch/test_ServerClient.py @@ -14,6 +14,8 @@ @author: Bastian Schroll @description: Unittests for BOSWatch. File have to run as "pytest" unittest """ +# problem of the pytest fixtures +# pylint: disable=redefined-outer-name import logging import time import queue diff --git a/test/boswatch/test_broadcast.py b/test/boswatch/test_broadcast.py index e0a37a6..ce88735 100644 --- a/test/boswatch/test_broadcast.py +++ b/test/boswatch/test_broadcast.py @@ -14,6 +14,8 @@ @author: Bastian Schroll @description: Unittests for BOSWatch. File have to run as "pytest" unittest """ +# problem of the pytest fixtures +# pylint: disable=redefined-outer-name import logging import pytest diff --git a/test/boswatch/test_config.py b/test/boswatch/test_config.py index df6f7d1..4fd92e1 100644 --- a/test/boswatch/test_config.py +++ b/test/boswatch/test_config.py @@ -14,6 +14,8 @@ @author: Bastian Schroll @description: Unittests for BOSWatch. File have to run as "pytest" unittest """ +# problem of the pytest fixtures +# pylint: disable=redefined-outer-name import logging import pytest from boswatch.utils import paths diff --git a/test/boswatch/test_decoder.py b/test/boswatch/test_decoder.py index 63e74ee..71bed94 100644 --- a/test/boswatch/test_decoder.py +++ b/test/boswatch/test_decoder.py @@ -14,6 +14,8 @@ @author: Bastian Schroll @description: Unittests for BOSWatch. File have to run as "pytest" unittest """ +# problem of the pytest fixtures +# pylint: disable=redefined-outer-name import logging from boswatch.decoder.decoder import Decoder diff --git a/test/boswatch/test_header.py b/test/boswatch/test_header.py index 49270af..b5908a3 100644 --- a/test/boswatch/test_header.py +++ b/test/boswatch/test_header.py @@ -14,6 +14,8 @@ @author: Bastian Schroll @description: Unittests for BOSWatch. File have to run as "pytest" unittest """ +# problem of the pytest fixtures +# pylint: disable=redefined-outer-name import logging from boswatch.utils import header diff --git a/test/boswatch/test_packet.py b/test/boswatch/test_packet.py index 31a738c..ee638fd 100644 --- a/test/boswatch/test_packet.py +++ b/test/boswatch/test_packet.py @@ -14,6 +14,8 @@ @author: Bastian Schroll @description: Unittests for BOSWatch. File have to run as "pytest" unittest """ +# problem of the pytest fixtures +# pylint: disable=redefined-outer-name import logging import pytest diff --git a/test/boswatch/test_paths.py b/test/boswatch/test_paths.py index d1f04b4..8b72b13 100644 --- a/test/boswatch/test_paths.py +++ b/test/boswatch/test_paths.py @@ -14,6 +14,8 @@ @author: Bastian Schroll @description: Unittests for BOSWatch. File have to run as "pytest" unittest """ +# problem of the pytest fixtures +# pylint: disable=redefined-outer-name import logging import os diff --git a/test/boswatch/test_timer.py b/test/boswatch/test_timer.py index a0df0e5..d382198 100644 --- a/test/boswatch/test_timer.py +++ b/test/boswatch/test_timer.py @@ -14,6 +14,8 @@ @author: Bastian Schroll @description: Unittests for BOSWatch. File have to run as "pytest" unittest """ +# problem of the pytest fixtures +# pylint: disable=redefined-outer-name import logging import time import pytest diff --git a/test/module/test_doubleFilter.py b/test/module/test_doubleFilter.py index ab92c0f..0f118ad 100644 --- a/test/module/test_doubleFilter.py +++ b/test/module/test_doubleFilter.py @@ -14,6 +14,8 @@ @author: Bastian Schroll @description: Unittests for BOSWatch. File have to run as "pytest" unittest """ +# problem of the pytest fixtures +# pylint: disable=redefined-outer-name import logging import pytest diff --git a/test/test_template.py b/test/test_template.py index ccb8c24..6bc74ac 100644 --- a/test/test_template.py +++ b/test/test_template.py @@ -14,6 +14,8 @@ @author: Bastian Schroll @description: Unittests for BOSWatch. File have to run as "pytest" unittest """ +# problem of the pytest fixtures +# pylint: disable=redefined-outer-name import logging import pytest