Change-Id: I5525e17a4536686091967ceb3ac2900bce47d9e2
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
def _adjust_path(self, file):
"""In case we are not running from test directory,
def _adjust_path(self, file):
"""In case we are not running from test directory,
- then assume we are in top level directory (e.g. running from tox) and adjust file path accordingly"""
+ then assume we are in top level directory (e.g. running from tox) and adjust file path accordingly
+ """
path_component = "/osm_pla/test/"
real_path = os.path.realpath(file)
if path_component not in real_path:
path_component = "/osm_pla/test/"
real_path = os.path.realpath(file)
if path_component not in real_path:
)
def test__produce_vld_desc_w_instantiate_override(self):
)
def test__produce_vld_desc_w_instantiate_override(self):
vld_desc_expected = [
{"cp_refs": ["one", "two"], "latency": 150, "jitter": 30},
{"cp_refs": ["two", "three"], "latency": 90, "jitter": 30},
vld_desc_expected = [
{"cp_refs": ["one", "two"], "latency": 150, "jitter": 30},
{"cp_refs": ["two", "three"], "latency": 90, "jitter": 30},
def _adjust_path(self, file):
"""In case we are not running from test directory,
def _adjust_path(self, file):
"""In case we are not running from test directory,
- then assume we are in top level directory (e.g. running from tox) and adjust file path accordingly"""
+ then assume we are in top level directory (e.g. running from tox) and adjust file path accordingly
+ """
path_component = "/osm_pla/test/"
real_path = os.path.realpath(file)
if path_component not in real_path:
path_component = "/osm_pla/test/"
real_path = os.path.realpath(file)
if path_component not in real_path:
coverage report --omit='*tests*'
coverage html -d ./cover --omit='*tests*'
coverage xml -o coverage.xml --omit=*tests*
coverage report --omit='*tests*'
coverage html -d ./cover --omit='*tests*'
coverage xml -o coverage.xml --omit=*tests*
-whitelist_externals = sh
+allowlist_externals = sh
#######################################################################################
#######################################################################################
[testenv:pip-compile]
deps = pip-tools==6.6.2
skip_install = true
[testenv:pip-compile]
deps = pip-tools==6.6.2
skip_install = true
-whitelist_externals = bash
+allowlist_externals = bash
[
commands =
- bash -c "for file in requirements*.in ; do \
[
commands =
- bash -c "for file in requirements*.in ; do \
python3 setup.py --command-packages=stdeb.command sdist_dsc
sh -c 'cd deb_dist/osm-pla*/ && dpkg-buildpackage -rfakeroot -uc -us'
sh -c 'rm osm_pla/requirements.txt'
python3 setup.py --command-packages=stdeb.command sdist_dsc
sh -c 'cd deb_dist/osm-pla*/ && dpkg-buildpackage -rfakeroot -uc -us'
sh -c 'rm osm_pla/requirements.txt'
-whitelist_externals = sh
+allowlist_externals = sh
#######################################################################################
[flake8]
#######################################################################################
[flake8]