2564b52972
H304 relative imports were inline suppressed in the unit tests. This modification to the unit test setup allows those relative imports to be fixed and the suppressions removed. pylint suppressions related to imports are also removed. This change has no runtime impact. The main change required was in the setup.py files for the tests. Test Plan: PASS: tox passing for nfv PASS: build-pkgs -p nfv Story: 2010531 Task: 47204 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I8d7f400f162aa9af59bcdde5377647e9c91cf58c
# # Copyright (c) 2015-2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # # # cd /usr/lib64/python2.7/site-packages/nfv_scenario_tests # # To run without coverage: # clear; python ./main.py -c ./config.ini -d default-data -s submission-setup -t submission-tests # clear; python ./main.py -c ./config.ini -d default-data-guest -s submission-setup-guest -t submission-tests # # To run with coverage: # mkdir -p /var/run/sm/services/ # touch /var/run/sm/services/vim.unmanaged # kill nfv-vim processes # # coverage erase --rcfile ./coverage.ini # coverage run --rcfile ./coverage.ini /usr/bin/nfv-vim -c /etc/nfv/vim/config.ini & # python ./main.py -c ./config.ini # kill nfv-vim processes # coverage report --rcfile ./coverage.ini #