Commit e14c9280 authored by David Mendez's avatar David Mendez
Browse files

make pylint happy

parent 64a5d72b
......@@ -3,9 +3,10 @@ Marshmallow schemas for validating the properties configuration controller
"""
from marshmallow import Schema, fields
class PropertyConfigRequest(Schema):
"""
Class with the schema for getting the configuration of a property
"""
index_name = fields.String(required=True)
property_id = fields.String(required=True)
\ No newline at end of file
property_id = fields.String(required=True)
......@@ -9,7 +9,8 @@ from app.blueprints.properties_config.services import properties_config_service
PROPERTIES_CONFIG_BLUEPRINT = Blueprint('properties_configuration', __name__)
@PROPERTIES_CONFIG_BLUEPRINT.route('/property/<index_name>/<property_id>', methods = ['GET'])
@PROPERTIES_CONFIG_BLUEPRINT.route('/property/<index_name>/<property_id>', methods=['GET'])
@validate_url_params_with(marshmallow_schemas.PropertyConfigRequest)
def get_property_config(index_name, property_id):
"""
......@@ -24,4 +25,4 @@ def get_property_config(index_name, property_id):
except properties_config_service.PropertiesConfigServiceError as error:
abort(500, repr(error))
\ No newline at end of file
abort(500, repr(error))
# pylint: disable=import-error,unused-argument
"""
Module that tests a property_config
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment