diff --git a/inventory_provider/data_routes.py b/inventory_provider/data_routes.py index 01b6f12cbcc84e9011a19851e43304c7ee4ccf5c..3c3238edbf12fd71a99cd30bd89b9616df514f96 100644 --- a/inventory_provider/data_routes.py +++ b/inventory_provider/data_routes.py @@ -2,7 +2,7 @@ import functools import json from flask import Blueprint, request, Response -#render_template, url_for +# render_template, url_for routes = Blueprint("python-utils-ui-routes", __name__) diff --git a/test/test_data_routes.py b/test/test_data_routes.py index 617e89e6ff5cb1fd425f04dae0e264b5fa06f46d..de7c0f809227a9aeff1a4aa9991df7451dcc93a6 100644 --- a/test/test_data_routes.py +++ b/test/test_data_routes.py @@ -1,5 +1,5 @@ import json -import logging +# import logging import os import tempfile @@ -35,7 +35,7 @@ v4Mask=.1.3.6.1.2.1.4.20.1.3 ## IPv6 v6AddressAndMask=.1.3.6.1.2.1.55.1.8.1.2 v6InterfaceName=.1.3.6.1.2.1.55.1.5.1.2 -""" +""" # noqa E501 ROUTERS_COMMUNITY_CONF = """ ###################################################################################################################################### @@ -79,7 +79,8 @@ mx1.lon2.uk.geant.net=0pBiFbD,62.40.96.15 mx1.ath2.gr.geant.net=0pBiFbD,62.40.96.39 # qfx.par.fr.geant.net=0pBiFbD,62.40.117.170 # qfx.fra.de.geant.net=0pBiFbD,62.40.117.162 -""" +""" # noqa E501 + def data_config_filename(tmp_dir_name): config = { @@ -89,8 +90,12 @@ def data_config_filename(tmp_dir_name): "username": "xxxxxx", "password": "xxxxxxxx" }, - "oid_list.conf": os.path.join(tmp_dir_name, "oid_list.conf"), - "routers_community.conf": os.path.join(tmp_dir_name, "routers_community.conf"), + "oid_list.conf": os.path.join( + tmp_dir_name, + "oid_list.conf"), + "routers_community.conf": os.path.join( + tmp_dir_name, + "routers_community.conf"), "ssh": { "private-key": "private-key-filename", "known-hosts": "known-hosts=filename" @@ -144,7 +149,7 @@ def test_version_request(client): "module": { "type": "string", "pattern": r'\d+\.\d+' - } + } }, "required": ["api", "module"], "additionalProperties": False