From ab8bdd9f7e26fae2e240efa57aa671eb732e3aa6 Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Mon, 2 May 2022 12:37:07 +0200
Subject: [PATCH] DOC: Slight docstring change.

And a style fix.
---
 src/caosadvancedtools/models/parser.py     | 5 +++--
 unittests/test_json_schema_model_parser.py | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/caosadvancedtools/models/parser.py b/src/caosadvancedtools/models/parser.py
index 5ebbd377..ad149222 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 c5dbcf53..7f47890f 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.")
-- 
GitLab