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

Class FakeWalSegment

tests/test_wal_transfer.py:16–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16class FakeWalSegment(object):
17 def __init__(self, seg_path, explicit=False,
18 upload_explosive=False,
19 mark_done_explosive=False):
20 self.explicit = explicit
21 self._upload_explosive = upload_explosive
22 self._mark_done_explosive = mark_done_explosive
23
24 self._marked = False
25 self._uploaded = False
26
27 def mark_done(self):
28 if self._mark_done_explosive:
29 raise self._mark_done_explosive
30
31 self._marked = True
32
33
34class FakeWalUploader(object):

Callers 6

test_simple_uploadFunction · 0.85
test_simple_failFunction · 0.85
test_finally_executionFunction · 0.85
test_start_after_joinFunction · 0.85
test_mark_done_faultFunction · 0.85

Calls

no outgoing calls

Tested by 6

test_simple_uploadFunction · 0.68
test_simple_failFunction · 0.68
test_finally_executionFunction · 0.68
test_start_after_joinFunction · 0.68
test_mark_done_faultFunction · 0.68