Skip to content

Commit 5a1eabb

Browse files
fix: use filename in tests.utils.get_file
1 parent ccfae7b commit 5a1eabb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/utils/tools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def _file_get(
9393
with open(file_path, "wb+") as file:
9494
file.write(file_data)
9595

96+
file_object = io.BytesIO(file_data)
97+
file_object.name = file_name
9698
return io.BytesIO(file_data)
9799

98100

0 commit comments

Comments
 (0)