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

Function test_simple_fail

tests/test_wal_transfer.py:121–134  ·  view source on GitHub ↗

Model a simple failure in the non-concurrent case.

()

Source from the content-addressed store, hash-verified

119
120
121def test_simple_fail():
122 """Model a simple failure in the non-concurrent case."""
123 group = worker.WalTransferGroup(FakeWalUploader())
124
125 exp = Explosion('fail')
126 seg = FakeWalSegment('1' * 8 * 3, explicit=True, upload_explosive=exp)
127
128 group.start(seg)
129
130 with pytest.raises(Explosion) as e:
131 group.join()
132
133 assert e.value is exp
134 assert failed(seg)
135
136
137def test_multi_explicit_fail():

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected