@pytest.fixture
def collect(monkeypatch):

    collect = BucketDeleteKeysCollector()
    monkeypatch.setattr(bucket.Bucket, 'delete_keys', collect)

    return collect
Instead of performing bulk delete, collect key names deleted.
dataset/ETHPy150Open wal-e/wal-e/tests/test_s3_deleter.py/collect