diff --git a/tests/common/fixtures/advanced_reboot.py b/tests/common/fixtures/advanced_reboot.py index 16aaff5f871..d0a8d0ca33c 100644 --- a/tests/common/fixtures/advanced_reboot.py +++ b/tests/common/fixtures/advanced_reboot.py @@ -5,8 +5,6 @@ import pytest import time -from common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-import] -from common.fixtures.ptfhost_utils import change_mac_addresses # lgtm[py/unused-import] from common.mellanox_data import is_mellanox_device as isMellanoxDevice from common.platform.ssh_utils import prepare_testbed_ssh_keys as prepareTestbedSshKeys from common.reboot import reboot as rebootDut diff --git a/tests/common/fixtures/populate_fdb.py b/tests/common/fixtures/populate_fdb.py index d359a6068ad..989e8bde4bc 100644 --- a/tests/common/fixtures/populate_fdb.py +++ b/tests/common/fixtures/populate_fdb.py @@ -2,7 +2,6 @@ import logging import pytest -from common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-import] from ptf_runner import ptf_runner logger = logging.getLogger(__name__) diff --git a/tests/copp/copp_utils.py b/tests/copp/copp_utils.py index a03f651081e..1d089fb8591 100644 --- a/tests/copp/copp_utils.py +++ b/tests/copp/copp_utils.py @@ -5,9 +5,6 @@ Refactor ptfadapter so it can be leveraged in these test cases. """ -from common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-import] -from common.fixtures.ptfhost_utils import change_mac_addresses # lgtm[py/unused-import] - DEFAULT_NN_TARGET_PORT = 3 _REMOVE_IP_SCRIPT = "scripts/remove_ip.sh" diff --git a/tests/copp/test_copp.py b/tests/copp/test_copp.py index a714541a253..c8f38ea1c3f 100644 --- a/tests/copp/test_copp.py +++ b/tests/copp/test_copp.py @@ -27,9 +27,11 @@ """ import time +import pytest from collections import namedtuple -import pytest +from common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-import] +from common.fixtures.ptfhost_utils import change_mac_addresses # lgtm[py/unused-import] from copp import copp_utils from ptf_runner import ptf_runner from common.system_utils import docker diff --git a/tests/platform_tests/test_advanced_reboot.py b/tests/platform_tests/test_advanced_reboot.py index 8a1cc05c202..b0e903bb60e 100644 --- a/tests/platform_tests/test_advanced_reboot.py +++ b/tests/platform_tests/test_advanced_reboot.py @@ -1,5 +1,8 @@ import pytest +from common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-import] +from common.fixtures.ptfhost_utils import change_mac_addresses # lgtm[py/unused-import] + @pytest.mark.usefixtures('get_advanced_reboot') def test_fast_reboot(request, get_advanced_reboot): ''' diff --git a/tests/qos/qos_sai_base.py b/tests/qos/qos_sai_base.py index a67e3b75bf7..71f1c9eebc7 100644 --- a/tests/qos/qos_sai_base.py +++ b/tests/qos/qos_sai_base.py @@ -4,9 +4,6 @@ import re import yaml -from common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-import] -from common.fixtures.ptfhost_utils import copy_acstests_directory # lgtm[py/unused-import] -from common.fixtures.ptfhost_utils import change_mac_addresses # lgtm[py/unused-import] from common.mellanox_data import is_mellanox_device as isMellanoxDevice from common.system_utils import docker diff --git a/tests/qos/test_qos_sai.py b/tests/qos/test_qos_sai.py index 833305d9a35..f1d9a1f81e2 100644 --- a/tests/qos/test_qos_sai.py +++ b/tests/qos/test_qos_sai.py @@ -20,6 +20,9 @@ import logging import pytest +from common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-import] +from common.fixtures.ptfhost_utils import copy_saitests_directory # lgtm[py/unused-import] +from common.fixtures.ptfhost_utils import change_mac_addresses # lgtm[py/unused-import] from qos_sai_base import QosSaiBase logger = logging.getLogger(__name__) diff --git a/tests/testbed_setup/test_populate_fdb.py b/tests/testbed_setup/test_populate_fdb.py index 961aabd84a7..f6dc16ddaa6 100644 --- a/tests/testbed_setup/test_populate_fdb.py +++ b/tests/testbed_setup/test_populate_fdb.py @@ -1,5 +1,7 @@ import pytest +from common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-import] + def test_populate_fdb(populate_fdb): """ Populates DUT FDB entries