Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mephenor committed Sep 29, 2023
1 parent bea8452 commit 334c058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hexkit/providers/s3/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down

0 comments on commit 334c058

Please sign in to comment.