From 334c05846a1e68c4aa208c3a8b0c32be8e72b654 Mon Sep 17 00:00:00 2001 From: "Thomas J. Zajac" Date: Fri, 29 Sep 2023 09:13:45 +0000 Subject: [PATCH] small fix --- src/hexkit/providers/s3/testutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hexkit/providers/s3/testutils.py b/src/hexkit/providers/s3/testutils.py index a31dd1bc..50c38ce3 100644 --- a/src/hexkit/providers/s3/testutils.py +++ b/src/hexkit/providers/s3/testutils.py @@ -66,14 +66,14 @@ class FileObject(BaseModel): # pylint: disable=no-self-argument @validator("content", always=True) - def read_content(self, _, values): + def read_content(cls, _, values): # noqa: N805 """Read in the file content.""" with open(values["file_path"], "rb") as file: return file.read() # pylint: disable=no-self-argument @validator("md5", always=True) - def calc_md5_from_content(self, _, values): + def calc_md5_from_content(cls, _, values): # noqa: N805 """Calculate md5 based on the content.""" return calc_md5(values["content"])