diff --git a/src/caosadvancedtools/models/parser.py b/src/caosadvancedtools/models/parser.py index 5ebbd37734ce89caca35509dbe5a7c83f1b6aa22..ad149222b5b90671a50943dc00bc9de8074a42f1 100644 --- a/src/caosadvancedtools/models/parser.py +++ b/src/caosadvancedtools/models/parser.py @@ -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 ---------- diff --git a/unittests/test_json_schema_model_parser.py b/unittests/test_json_schema_model_parser.py index c5dbcf532d4ee6a0f4d4aa6edca9841e1d69ce8a..7f47890f413dce5511cd498fe802e03a1af3be70 100644 --- a/unittests/test_json_schema_model_parser.py +++ b/unittests/test_json_schema_model_parser.py @@ -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.")