Avoid batch S3 deletes in builder
All checks were successful
build / build (push) Successful in 2s

This commit is contained in:
robert
2026-05-19 13:33:07 -03:00
parent f5bda1ab24
commit 27b0cabc55
2 changed files with 10 additions and 9 deletions

View File

@@ -192,9 +192,11 @@ class _FakeS3:
) -> None:
self.objects[Key] = bytes(Body)
def delete_object(self, *, Bucket: str, Key: str) -> None:
self.objects.pop(Key, None)
def delete_objects(self, *, Bucket: str, Delete: dict[str, object]) -> None:
for obj in Delete["Objects"]: # type: ignore[index]
self.objects.pop(obj["Key"], None)
raise AssertionError("batch DeleteObjects should not be used")
class _FakePaginator: