diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-04 14:01:02 +0100 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2020-03-04 14:06:04 +0000 |
commit | be1067b70c76b71c213a5ebbde52d6f7f74abc2d (patch) | |
tree | 440395825ad092a65888499e3ca1eec81cc7476a /test | |
parent | 3bb78c3ee86a5d555d78135fde6b9bab3753a95e (diff) |
Remove unused imports in vcpe python scripts
Unused imports are removed according to pylint report
or ignore rules are added where applicable.
Change-Id: I8c32b5c3f456f0444f8ec8980910d470b7238a7d
Issue-ID: INT-1427
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/vcpe/cleanvGMUX.py | 2 | ||||
-rwxr-xr-x | test/vcpe/config_sdnc_so.py | 2 | ||||
-rwxr-xr-x | test/vcpe/get_info.py | 10 | ||||
-rwxr-xr-x | test/vcpe/healthcheck-k8s.py | 1 | ||||
-rwxr-xr-x | test/vcpe/loop.py | 9 | ||||
-rwxr-xr-x | test/vcpe/sdcutils.py | 3 | ||||
-rw-r--r-- | test/vcpe/tests/test_imports.py | 1 | ||||
-rwxr-xr-x | test/vcpe/vcpe.py | 2 | ||||
-rwxr-xr-x | test/vcpe/vcpe_custom_service.py | 3 |
9 files changed, 7 insertions, 26 deletions
diff --git a/test/vcpe/cleanvGMUX.py b/test/vcpe/cleanvGMUX.py index f5269532e..93135fb0c 100755 --- a/test/vcpe/cleanvGMUX.py +++ b/test/vcpe/cleanvGMUX.py @@ -4,8 +4,6 @@ import sys import logging import requests import json -from datetime import datetime -import time gmux_ip = '' logging.basicConfig(level=logging.DEBUG, format='%(message)s') diff --git a/test/vcpe/config_sdnc_so.py b/test/vcpe/config_sdnc_so.py index 9f9a2e007..eac7c59a5 100755 --- a/test/vcpe/config_sdnc_so.py +++ b/test/vcpe/config_sdnc_so.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import logging -from vcpecommon import * +from vcpecommon import * # pylint: disable=W0614 import csar_parser diff --git a/test/vcpe/get_info.py b/test/vcpe/get_info.py index 62e428ad0..71efd183c 100755 --- a/test/vcpe/get_info.py +++ b/test/vcpe/get_info.py @@ -1,16 +1,8 @@ #!/usr/bin/env python -import time import logging import json -import mysql.connector -import ipaddress -import re -import sys -import base64 -from vcpecommon import * -import preload -import vcpe_custom_service +from vcpecommon import * # pylint: disable=W0614 import argparse # Run the script with [-h|--help] to get usage info diff --git a/test/vcpe/healthcheck-k8s.py b/test/vcpe/healthcheck-k8s.py index ae33e25b2..2d58cc9d3 100755 --- a/test/vcpe/healthcheck-k8s.py +++ b/test/vcpe/healthcheck-k8s.py @@ -2,7 +2,6 @@ import argparse import json -import logging from subprocess import Popen,PIPE,STDOUT,check_output,CalledProcessError import sys diff --git a/test/vcpe/loop.py b/test/vcpe/loop.py index 43255c94c..1636e397c 100755 --- a/test/vcpe/loop.py +++ b/test/vcpe/loop.py @@ -2,14 +2,7 @@ import time import logging -import json -import mysql.connector -import ipaddress -import re -import sys -import base64 -from vcpecommon import * -import preload +from vcpecommon import * # pylint: disable=W0614 import commands import vcpe_custom_service import argparse diff --git a/test/vcpe/sdcutils.py b/test/vcpe/sdcutils.py index a6f6a507b..db0229dfd 100755 --- a/test/vcpe/sdcutils.py +++ b/test/vcpe/sdcutils.py @@ -1,10 +1,9 @@ #!/usr/bin/env python -import sys import logging import requests import json -from vcpecommon import * +from vcpecommon import * # pylint: disable=W0614 class SdcUtils: diff --git a/test/vcpe/tests/test_imports.py b/test/vcpe/tests/test_imports.py index fee8507dc..4587495d4 100644 --- a/test/vcpe/tests/test_imports.py +++ b/test/vcpe/tests/test_imports.py @@ -1,6 +1,7 @@ import sys sys.path.append('./') +# pylint: disable=W0611 import vcpecommon import config_sdnc_so import csar_parser diff --git a/test/vcpe/vcpe.py b/test/vcpe/vcpe.py index b1540780d..fc853ae35 100755 --- a/test/vcpe/vcpe.py +++ b/test/vcpe/vcpe.py @@ -4,7 +4,7 @@ import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s %(name)s.%(funcName)s(): %(message)s') import sys -from vcpecommon import * +from vcpecommon import * # pylint: disable=W0614 import sdcutils import soutils from datetime import datetime diff --git a/test/vcpe/vcpe_custom_service.py b/test/vcpe/vcpe_custom_service.py index b3a26d174..973cd2723 100755 --- a/test/vcpe/vcpe_custom_service.py +++ b/test/vcpe/vcpe_custom_service.py @@ -2,8 +2,7 @@ import os import requests -import time -from vcpecommon import * +from vcpecommon import * # pylint: disable=W0614 from datetime import datetime import soutils import logging |