Skip to content

Commit

Permalink
Fix broken test #11
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Sep 30, 2024
1 parent d8b5294 commit 88ce418
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion object_storage_api/stores/attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def create_presigned_url(self, attachment_id: str, attachment: AttachmentPostSch
# the same type in the headers as well
"ContentType": "multipart/form-data",
},
ExpiresIn=object_storage_config.presigned_url_expiry,
ExpiresIn=object_storage_config.presigned_url_expiry_seconds,
)

return object_key, url
2 changes: 1 addition & 1 deletion test/unit/stores/test_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def check_create_presigned_url_success(self) -> None:
"Key": self._expected_object_key,
"ContentType": "multipart/form-data",
},
ExpiresIn=object_storage_config.presigned_url_expiry,
ExpiresIn=object_storage_config.presigned_url_expiry_seconds,
)

# Cannot know the expected creation and modified time here, so ignore in comparison
Expand Down

0 comments on commit 88ce418

Please sign in to comment.