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

Function test_mark_done_fault

tests/test_wal_transfer.py:233–244  ·  view source on GitHub ↗

Exercise exception handling from .mark_done()

()

Source from the content-addressed store, hash-verified

231
232
233def test_mark_done_fault():
234 """Exercise exception handling from .mark_done()"""
235 group = worker.WalTransferGroup(FakeWalUploader())
236
237 exp = Explosion('boom')
238 seg = FakeWalSegment('arbitrary', mark_done_explosive=exp)
239 group.start(seg)
240
241 with pytest.raises(Explosion) as e:
242 group.join()
243
244 assert e.value is exp

Callers

nothing calls this directly

Calls 5

startMethod · 0.95
joinMethod · 0.95
FakeWalUploaderClass · 0.85
FakeWalSegmentClass · 0.85
ExplosionClass · 0.70

Tested by

no test coverage detected