Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ChEMBL
C
ChEMBL
Main Web Interface
Elasticsearch Proxy API
Commits
e14c9280
Commit
e14c9280
authored
May 28, 2020
by
David Mendez
Browse files
make pylint happy
parent
64a5d72b
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
app/blueprints/properties_config/controllers/marshmallow_schemas.py
...ints/properties_config/controllers/marshmallow_schemas.py
+2
-1
app/blueprints/properties_config/controllers/properties_config_controller.py
...erties_config/controllers/properties_config_controller.py
+3
-2
functional_tests/specific_tests/fun_test_property_config.py
functional_tests/specific_tests/fun_test_property_config.py
+1
-0
No files found.
app/blueprints/properties_config/controllers/marshmallow_schemas.py
View file @
e14c9280
...
...
@@ -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
)
app/blueprints/properties_config/controllers/properties_config_controller.py
View file @
e14c9280
...
...
@@ -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
))
functional_tests/specific_tests/fun_test_property_config.py
View file @
e14c9280
# pylint: disable=import-error,unused-argument
"""
Module that tests a property_config
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment