Exercise exception handling from .mark_done()
()
| 231 | |
| 232 | |
| 233 | def 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 |
nothing calls this directly
no test coverage detected