From 77ebf95434463931774e97c03c858c0ffed7eb82 Mon Sep 17 00:00:00 2001 From: anikeev-yadro <110966367+anikeev-yadro@users.noreply.github.com> Date: Tue, 25 Oct 2022 09:52:23 +0300 Subject: [PATCH] Update pytest_tests/helpers/file_helper.py Co-authored-by: Vladimir <108462321+vdomnich-yadro@users.noreply.github.com> Signed-off-by: anikeev-yadro <110966367+anikeev-yadro@users.noreply.github.com> --- pytest_tests/helpers/file_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_tests/helpers/file_helper.py b/pytest_tests/helpers/file_helper.py index 3da8421..379d022 100644 --- a/pytest_tests/helpers/file_helper.py +++ b/pytest_tests/helpers/file_helper.py @@ -76,7 +76,7 @@ def get_file_hash(file_path: str, len: Optional[int] = None, offset: Optional[in if len and offset is None: file_hash.update(out.read(len)) elif len and offset: - out.seek(offset, 1) + out.seek(offset, 0) file_hash.update(out.read(len)) else: file_hash.update(out.read())