diff --git a/src/hexkit/config.py b/src/hexkit/config.py index 58727798..62954850 100644 --- a/src/hexkit/config.py +++ b/src/hexkit/config.py @@ -107,8 +107,8 @@ def config_from_yaml( ) -> Callable: """A factory that returns decorator functions which extends a pydantic BaseSettings class to read in parameters from a config yaml. - It replaces (or adds) a config settings to the BaseSettings class that configures - the priorities for parameter sources as follows (highest Priority first): + It replaces (or adds) config settings to the BaseSettings class that configures + the priorities for parameter sources as follows (highest priority first): - parameters passed using **kwargs - environment variables - file secrets diff --git a/src/hexkit/providers/mongodb/provider.py b/src/hexkit/providers/mongodb/provider.py index 96bb094a..a26b57d8 100644 --- a/src/hexkit/providers/mongodb/provider.py +++ b/src/hexkit/providers/mongodb/provider.py @@ -91,7 +91,7 @@ def _document_to_dto(self, document: dict[str, Any]) -> Dto: return self._dto_model(**document) def _dto_to_document(self, dto: Dto) -> dict[str, Any]: - """Converts a DTO into a representation that is compatible documents for a + """Converts a DTO into a representation that is a compatible document for a MongoDB Database. """ document = json.loads(dto.model_dump_json()) diff --git a/src/hexkit/providers/s3/testutils.py b/src/hexkit/providers/s3/testutils.py index eacc67d2..b9a94172 100644 --- a/src/hexkit/providers/s3/testutils.py +++ b/src/hexkit/providers/s3/testutils.py @@ -67,7 +67,7 @@ class FileObject(BaseModel): def content(self) -> bytes: """Extract the content from the file at the provided path""" if not self.file_path: - return b"will be overwritten" + raise ValueError("`FileObject.file_path` must not be empty.") with open(self.file_path, "rb") as file: return file.read()