As I mentioned earlier, When credential only has the write permission, the check_credentials(write=True) will fail.
Repeat code:
from kiwixstorage import KiwixStorage
# This key only has write permission
a = KiwixStorage("YOUR KEY")
a.check_credentials(write=True)
The reasons is we accidentally call the delete_obejct in test_access_write
|
finally: |
|
self.client.delete_object(Bucket=self.bucket_name, Key=key) |