MCPcopy Create free account
hub / github.com/wal-e/wal-e / FakeUploader

Class FakeUploader

tests/test_tar_upload_pool.py:17–24  ·  view source on GitHub ↗

A no-op uploader that makes affordance for fault injection.

Source from the content-addressed store, hash-verified

15
16
17class FakeUploader(object):
18 """A no-op uploader that makes affordance for fault injection."""
19
20 def __call__(self, tpart):
21 if tpart._explosive:
22 raise tpart._explosive
23
24 return tpart
25
26
27class Explosion(Exception):

Callers 1

make_poolFunction · 0.85

Calls

no outgoing calls

Tested by 1

make_poolFunction · 0.68