Skip to content
Snippets Groups Projects
Verified Commit ab8bdd9f authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: Slight docstring change.

And a style fix.
parent 4e78419d
No related branches found
No related tags found
2 merge requests!43REL: Release 0.4.1,!42ENH: Special treatment for name property
Pipeline #22414 passed
......@@ -634,8 +634,9 @@ class JsonSchemaParser(Parser):
return self._create_model_from_dict(model_dict)
def _create_model_from_dict(self, model_dict: [dict, List[dict]]):
"""Parse a dictionary read in from the model definition in a json schema and
return the Datamodel created from it.
"""Parse a dictionary and return the Datamodel created from it.
The dictionary was typically created from the model definition in a json schema file.
Parameters
----------
......
......@@ -354,4 +354,5 @@ def test_name_property():
broken = parse_model_from_json_schema(os.path.join(
FILEPATH, "datamodel_name_wrong_type.schema.json"))
assert str(err.value).startswith(
"The 'name' property must be string-typed, otherwise it cannot be identified with CaosDB's name property.")
"The 'name' property must be string-typed, otherwise it cannot be identified with CaosDB's "
"name property.")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment