Fix black and cover errors 10/13110/2 v13.0 v13.0.1 v13.0.2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 28 Mar 2023 22:17:17 +0000 (00:17 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 31 Mar 2023 19:42:53 +0000 (21:42 +0200)
Change-Id: Ic6b5d4babf5d7da3f1e78b0ed1abd5110bc9a904
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_pla/test/test_nsPlacementDataFactory.py
osm_pla/test/test_server.py
requirements-dev.in
requirements-dev.txt
tox.ini

index dbb8572..b7075c3 100644 (file)
@@ -319,7 +319,8 @@ class TestNsPlacementDataFactory(TestCase):
 
     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:
@@ -747,7 +748,6 @@ class TestNsPlacementDataFactory(TestCase):
         )
 
     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},
index 3ba2979..127b4d1 100644 (file)
@@ -487,7 +487,8 @@ class TestServer(TestCase):
 
     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:
index 43d075c..8010545 100644 (file)
@@ -13,5 +13,5 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-git+https://osm.etsi.org/gerrit/osm/common.git@master#egg=osm-common
+git+https://osm.etsi.org/gerrit/osm/common.git@v13.0#egg=osm-common
 -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=v13.0
index 3d56590..1c89a18 100644 (file)
@@ -22,7 +22,7 @@ kafka-python==2.0.2
     # via
     #   -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=v13.0
     #   aiokafka
-osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@master
+osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@v13.0
     # via -r requirements-dev.in
 pycrypto==2.6.1
     # via -r https://osm.etsi.org/gitweb/?p=osm/common.git;a=blob_plain;f=requirements.txt;hb=v13.0
diff --git a/tox.ini b/tox.ini
index cd097e1..8d2401c 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -49,7 +49,7 @@ commands =
         coverage report --omit='*tests*'
         coverage html -d ./cover --omit='*tests*'
         coverage xml -o coverage.xml --omit=*tests*
-whitelist_externals = sh
+allowlist_externals = sh
 
 
 #######################################################################################
@@ -84,7 +84,7 @@ commands =
 [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 \
@@ -108,7 +108,7 @@ commands =
         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]